Mike Singleton wrote: > > 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? Yes system works.
It looks like egrep is failing because $OUT_TEMP is allready open by your perl script. In fact I can see no reason to open $OUT_TEMP - the script doesn't use the OUTF file handle between open and close! Try commenting out the open and close calls around the system call. -- Simon Oliver _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
