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;
In reply to Perl die after executing external program by aullah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |