I have a shell script that calls a perl script to decrypt and pulls back a password. The perl script prints to stdout the decrypted password. (btw when both the scripts are in perl it works, however I have to have a method to do it from shell to perl as well). The shell script pring this error
/opt/DIFF/fwd_encrypt.sh: =1qaz2wsx: not found
fyi fwd_encrypt.sh is the shell script name and 1qaz2wsx: is the decrypted password.
from shell script
from perl script
print STDOUT $pass;
Again, if I do this perl to perl it works. If I call /opt/DIFF/decrypt.pl with an ARV, ie
/opt/DIFF/decrypt.pl testfile ---> it prints out the decrypted password to stdout.