my $CLIENT = "lftp";
my $connectionString = "" . $CLIENT . " -d -f bar 2>&1";
my $result = `$connectionString` || die "\nERROR running $CLIENT: $!";
print $result;
The return won't work because this isn't part of a subroutine, but you should get an error about that specifically if this is really the code you're running and it ever makes it past the die. Also, my script file was called 'bar' rather than script.ftp in this case.
Are you sure lftp is in your path when the program is run? You might have to supply the full path.
|