sumanth_ora
asked on
gpg: cannot open `/dev/tty': No such device or address in linux
Hi
The following command in the perl script throughing error like "gpg: cannot open `/dev/tty': No such device or address" but It works if I run it alone in the putty. Please advise me.
`cat /home/jma/JPMC_keys/passph rase | gpg -a -e -s -r pgpadmin\@ecqa.company.com -u adminqa_rsa\@company.com --passphrase-fd 0 -o $file_location/$encrypted_ filename $file_location/$filename`;
The following command in the perl script throughing error like "gpg: cannot open `/dev/tty': No such device or address" but It works if I run it alone in the putty. Please advise me.
`cat /home/jma/JPMC_keys/passph
So it works when you run it in putty - where does it NOT work? Are attempting to cron this? How are you generating that error?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good Solution