You can do this through open pipe, but you might run into some buffering problems.
open(LOG,">>/path/to/log"); open(SYS,"/path/to/python/script.py |"); while (<SYS>) { print $_; print LOG $_; } close(SYS); close(LOG);
This way you can print to screen and to your log file
In reply to Re: Wrap around an interactive python script
by ahmad
in thread Wrap around an interactive python script
by Kirsle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |