Link to home
Start Free TrialLog in
Avatar of sumanth_ora
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/passphrase  | 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`;
Avatar of xterm
xterm

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
Avatar of djeek
djeek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sumanth_ora

ASKER

Good Solution