aullah has asked for the wisdom of the Perl Monks concerning the following question:
Well, it's perfectly execute all command from script.ftp file as debug is on and after that just die and nothing written to $result. Any clue why it's not passing the output to $result and just die? If I run the same from shell, it's perfectly executing with no error.my $CLIENT = "lftp"; my $connectionString = "" . $CLIENT . " -d -f script.ftp"; my $result = `$connectionString` or die "\nERROR running $CLIENT: $!"; return $result;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl die after executing external program
by mr_mischief (Monsignor) on Apr 28, 2011 at 20:11 UTC | |
|
Re: Perl die after executing external program
by davido (Cardinal) on Apr 28, 2011 at 20:08 UTC | |
by aullah (Initiate) on Apr 28, 2011 at 20:29 UTC | |
by mr_mischief (Monsignor) on Apr 29, 2011 at 12:51 UTC | |
by aullah (Initiate) on Apr 29, 2011 at 13:09 UTC | |
by mr_mischief (Monsignor) on Apr 29, 2011 at 13:18 UTC | |
|