- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- GnuPG automation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 12:40 AM
12-02-2005 12:40 AM
GnuPG automation
I'm having trouble getting a decryption script working using GnuPG. I've tried both expect and python (GnuPGInterface). The Expect script seems to just hang, and the Python script works fine from the command-line, but when I put it into cron, it generates a stack trace error list. Does anybody have a script that does decryption and that can be used from cron without any problems. Thanks for any help and/or pointers.
Gary
- Tags:
- GNUPG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 12:50 AM
12-02-2005 12:50 AM
Re: GnuPG automation
The basic comment I can make is that 'cron' provides a very minimal environment. If the script works correctly from a shell but not under 'cron', a good place to start looking is at environmental variables that you "always" have in your normal shell environment, because they were set in your login profile. For example, 'cron' provides a PATH defined only as '/usr/bin:/usr/sbin'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 01:34 AM
12-02-2005 01:34 AM
Re: GnuPG automation
I didn't even think of that. Now that I modified the path, it seems to make a difference, but I'm getting a different error which seems strange. I'm wondering if someone here could shed some light on it. The error is:
gpg: cannot open '/dev/tty': No such device or address
It seems totally bizarre that it can't open a tty.
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 02:06 AM
12-02-2005 02:06 AM
Re: GnuPG automation
its normal in cron not having a tty:
cron is a daemon, not sitting in front of a terminal.
Think of the classical 'who' command - ever tried to call it in cron?
Look for options that fulfill ALL information GnuPG requests; perhaps you can supply some information via a pipe:
echo 'input
input' | GnuPG
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 12:29 AM
12-05-2005 12:29 AM