Tuesday, July 28, 2009

How do you run a shell script command from perl without exiting?

both exec() and fork() will cause the parent process to exit after running the child process. what to do?

How do you run a shell script command from perl without exiting?
Several ways, depending on what you need to do.





Try the system() command as in





system ("mycommand %26gt;/dev/null");


No comments:

Post a Comment