You may want to use exec in place of system, to get the backgrounding, without needing to fork and all that other work.
Update: There are times when you'd want to fork (if you needed to get the final status from when the program finished), and I have no idea what the program is that you're kicking off. But the example given doesn't attempt to capture the return value from system(), and as you're attempting to run it through nohup, in the background, I can only assume that it's not needed.
In reply to exec, not system
by jhourcle
in thread Submitting program to background from perl
by gerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |