system('your_command --with options > /other/file');
To keep a CGI script running after the connection quits, use fork and close or re-open STDOUT and STDERR. See also Watching long processes through CGI.
In reply to Re: How to redirect the output of system call
by moritz
in thread How to redirect the output of system call
by advait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |