in reply to system call: Unix system call result into a variable
This may be more generic, if you want to do some more complicated processing of each line of output from the system call?open($cmd, "tail -n 10 $ERRLOG |"); while(<$cmd>) { # do something here }
|
|---|