[Tex/LaTex] Inserting Code in multiple pages as an appendix

external fileslistingspage-breaking

I am trying to insert a script (bash shell code) to the appendix of my document. I am trying to import the script from separate file. The script file name is Event_Db_BckUp_Script.als. The problem is that the code is very long and it requires to be split into multiple pages.
When I use the following code, it is only shown in single page and cut the rest of the code.
How can I display the whole script in multiple pages?

Here is what I am doing right now:

\begin{Listing}[H] 
\filein{Event_Db_BckUp_Script.als} 
\caption{IDSaaS initialization Script} 
\label{list:Idsaas_Script} 
\end{Listing}

Best Answer

I would prefer the listings package. I've made several documents, also with very long listings with it and it worked fine. You can also include files without copying them to your TeX-Code.

A minimal example would look like this, for more options please consult the documentation of the package.:

\documentclass{article}
\usepackage{listings}
\begin{document}
\lstinputlisting[language=bash]{script.als}
\end{document}