Have a Perl script that has a few variables and then at the end does an ssh to a server and runs another script.
For a test script on the remote server I'm doing:
But it's not printing those set in the originating script on the primary server.
For a test script on the remote server I'm doing:
Code:
#!/usr/bin/perl
eval "$ARGV[0]";
print "$option1 $option2 $option3\n";
But it's not printing those set in the originating script on the primary server.