in reply to Re: Help: STDOUT flaking out?
in thread Help: STDOUT flaking out?
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Help: STDOUT flaking out?
by suaveant (Parson) on May 17, 2001 at 19:34 UTC | |
by P0w3rK!d (Pilgrim) on May 17, 2001 at 21:24 UTC | |
|
Re: Re: Re: Help: STDOUT flaking out?
by myocom (Deacon) on May 17, 2001 at 19:32 UTC | |
|
Re: *Problem Solved* Help: STDOUT flaking out?
by P0w3rK!d (Pilgrim) on May 17, 2001 at 19:34 UTC | |
by P0w3rK!d (Pilgrim) on May 17, 2001 at 20:07 UTC |