After some more poking around... I found this open (OUTF,">$OUT_TEMP") || die "Cannot open output file $!"; $grepexpr = "egrep \"$JOBSTART\|$CONDSTART\|$JOBEND\|$CONDEND\|$JOBCANC\|$VOLUSED\" \` ls -tr ../logs/3*.log\` >$OUT_TEMP"; system "$grepexpr"; close OUTF;
I have the commands 'egrep' and 'ls' from an NT port (http://www2.informatik.tu-muenchen.de/pub/sw/UnxUtils.html) so these should work... unless there is a workaround that doesn't use these. Also, does the line starting with 'system' work under win32? >>> Simon Oliver <[EMAIL PROTECTED]> 07/10/02 01:41AM >>> " the process cannot access the file because it is in use by another process." This is an operating system error message that indicates that something else has a lock on the file. Which open() is generating the error? if you remove the "\n" from die string you will see at which line. -- Simon Oliver _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs DaVita Inc. _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs