Is there a way to capture the output from a Process?
I am running a perl process in the background, and would like to log the output from the perl script to my log files.
Previously I ran a C++ executable, and the logging occurred on the console as expected together with the fantom log output. But this time I am running perl, and the perl script output (All of it) only appears on the console when I terminate the Process.
Even with it working, I still have no way of getting the output sent to the console into a log file.
Any suggestions?
CoderzSat 24 Jul 2010
I might not be clear on the post :)
I can use normal Instream and Outstream (Process.in and Process.out), but when using perl they seem to be working only when the perl process stops. All other processes are working fine.
brianMon 26 Jul 2010
The Process API definitely does capture streaming I/O. However I don't know all the ins and outs for why a perl program wouldn't work. It must be flushing the output differently?
Coderz Sat 24 Jul 2010
Hi
Is there a way to capture the output from a Process?
I am running a perl process in the background, and would like to log the output from the perl script to my log files.
Previously I ran a C++ executable, and the logging occurred on the console as expected together with the fantom log output. But this time I am running perl, and the perl script output (All of it) only appears on the console when I terminate the Process.
Even with it working, I still have no way of getting the output sent to the console into a log file.
Any suggestions?
Coderz Sat 24 Jul 2010
I might not be clear on the post :)
I can use normal Instream and Outstream (Process.in and Process.out), but when using perl they seem to be working only when the perl process stops. All other processes are working fine.
brian Mon 26 Jul 2010
The Process API definitely does capture streaming I/O. However I don't know all the ins and outs for why a perl program wouldn't work. It must be flushing the output differently?