RESULT: $ ftp_flow.pl logfile = /tmp/ftp_flow.111753410117.log errfile = /tmp/ftp_flow.111753410117.err FTPData.20010517.111754 $ cat /tmp/ftp_flow.111753410117.log $ (the file is empty... it should contain "FTPData.20010517.111754" as the 1st line) CODE: # send output to file @args2 = ("$tabfile"); local(*LOGFILE); open (LOGFILE, ">$logfile") || die "could not open log\n"; select(LOGFILE); unless (system(@args2) == 0) { print STDERR "system(@args2) failed: $? $!\n"; return; } close(LOGFILE); print "foo1\n"; exit (0);
In reply to Re: Re: Help: STDOUT flaking out?
by P0w3rK!d
in thread Help: STDOUT flaking out?
by P0w3rK!d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |