PERL SSH call error

I have a Perl Script

#!/usr/local/bin/perl

$server_name = "info-xyz-05";

my $value = `/usr/bin/ssh -f $server_name /users/salesadm/MGFINFA/bridgerftpup.sh`;

The above calls a shell script on another server called bridgerftpup.sh. This script has several commands and needs to call scripts which exist in the same folder. However, when I execute the Perl Script I get the following errors:

/users/salesadm/MGFINFA/bridgerftpup.sh[9]: =/users/salesadm/MGFINFA: cannot execute
rm: cannot remove `*.gpg': No such file or directory
/users/salesadm/MGFINFA/bridgerftpup.sh[16]: ./expect_bridgerdel.sh: cannot execute
gpg: can't open BridgerRequestMGP-*.csv: No such file or directory
gpg: BridgerRequestMGP-*.csv: encryption failed: file open error
/users/salesadm/MGFINFA/bridgerftpup.sh: line 22: ./expect_bridgerup.sh: not found

The script bridgerftpup.sh executes fine when executed from the destination server.

For reference the script bridgerftpup.sh is as follows:

#!/usr/bin/ksh


#Delete files from target File Directory
rm *.gpg

#Delete files from FTP Output Location
./expect_bridgerdel.sh

#Encrypt Current Output File
gpg -e xyx xyx xyxyx " BridgerRequestMGP-*.csv

#Upload encrypted file
./expect_bridgerup.sh > bridgerftpup.log

Any suggestions how to remove the error messages?

---------- Post updated at 06:13 PM ---------- Previous update was at 06:12 PM ----------

I tried putting full paths in the script bridgerftpup.sh but it still causes errors!

Does the following command:

/usr/bin/ssh -f info-xyz-05 /users/salesadm/MGFINFA/bridgerftpup.sh

run successfully from the command prompt of the server where your Perl script exists ?

tyler_durden

What error's ?