I am running a Perl script in which I need to start a tomcat server. After starting the server I need to execute a different linux command.
In the Perl script after starting tomcat it isn't coming out to the next line as tomcat sever is running..
system("tomcat.sh run >log.txt");
system("ls");
I tried to open the server in different terminal. But control remains there itself.
system("xterm", "-hold", "-e", " tomcat.sh run");
I tried exec
in place of system
but the behaviour is same.