Re: system vs. backticks

2010-06-10 Thread pauldkline
The solution is to open a shell script with a pipe and send it the commands to be executed. That way no new shell is opened for each command and McAfee is quiet: # open shell with pipe and turn off buffering open (OPSH, "|-") or exec ("./my.sh 01 >opsh1.log 2>&1"); $savefh

Re: system vs. backticks

2010-05-19 Thread Rob Coops
On Tue, May 18, 2010 at 11:23 PM, Dr.Ruud > wrote: > pauldkl...@aol.com wrote: > >> I have a perl script that calls a compiled c program and retrieves the >> output lines hundreds of times a minute, and want to make it as >> efficient as possible. This is on Windows XP and ActivePerl 5.8. >> >>

Re: system vs. backticks

2010-05-19 Thread Dr.Ruud
pauldkl...@aol.com wrote: I have a perl script that calls a compiled c program and retrieves the output lines hundreds of times a minute, and want to make it as efficient as possible. This is on Windows XP and ActivePerl 5.8. Using 'system' and redirecting stdout to a file, then opening and rea