P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl # just make up a fake file here to create # and echo the filename of /tmp/foo $tabfile = "./tabfile"; $logfile = "/tmp/foo"; # send output to file @args2 = ("$tabfile"); open (STDOUT, ">$logfile") || die "could not open log\n"; unless (system(@args2) == 0) { print STDERR "system(@args2) failed: $? $!\n"; return; } close(STDOUT); print "foo1\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help: STDOUT flaking out?
by busunsl (Vicar) on May 17, 2001 at 17:56 UTC | |
|
Re: Help: STDOUT flaking out?
by suaveant (Parson) on May 17, 2001 at 18:01 UTC | |
by P0w3rK!d (Pilgrim) on May 17, 2001 at 19:23 UTC | |
by suaveant (Parson) on May 17, 2001 at 19:34 UTC | |
by P0w3rK!d (Pilgrim) on May 17, 2001 at 21:24 UTC | |
by myocom (Deacon) on May 17, 2001 at 19:32 UTC | |
by P0w3rK!d (Pilgrim) on May 17, 2001 at 19:34 UTC | |
by P0w3rK!d (Pilgrim) on May 17, 2001 at 20:07 UTC |