Apache already has a start/stop shell $APACHE_HOME/bin/apachectl. You can pass start/stop on the command line which means you can have a simple shell to do what you want. I'm not sure about tomcat...
Hi,
if all you want to do is read the file into an array, you don't need a loop. Just do this:
open(FILEHANDLE, "somefile.txt");
@array=<FILEHANDLE>;
close(FILEHANDLE);
If you want to process it in the loop and also save it to array:
open(FILEHANDLE, "somefile.txt")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.