alk1000 has asked for the wisdom of the Perl Monks concerning the following question:
I know there is no point of passing the date value in such manners. This is just a simplified example of what i'm trying to do.$ReturnValue=fork; if ( $ReturnValue==0) { exec '/bin/date'; } elsif (defined $ReturnValue) { $pid = wait; # i need to get the value of date right here } else { die "Fork error: $!\n"; }
update (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there anyway to redirect the output of exec?
by Zaxo (Archbishop) on Jun 02, 2003 at 08:51 UTC | |
|
Re: Is there anyway to redirect the output of exec?
by edan (Curate) on Jun 02, 2003 at 08:37 UTC | |
|
Re: Is there anyway to redirect the output of exec?
by arthas (Hermit) on Jun 02, 2003 at 08:54 UTC |