- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- PGP Shell Script
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
Discussions
Discussions
Forums
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
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
тАО01-25-2006 08:48 AM
тАО01-25-2006 08:48 AM
How can I redirect stdin to the screen ?
CRYPT
{
$PGPPATH/pgp -esa +batchmode $PGPPATH/tmp/filename herkey -u mykey >>$PGPPATH/pgp_test.log 2>&1 <
}
Thanks in advance
Solved! Go to Solution.
- Tags:
- PGP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 08:57 AM
тАО01-25-2006 08:57 AM
Re: PGP Shell Script
Are you scheduling it with either cron or at in batch mode...since processes kicked by either of them have no controlling terminal so the program won't prompt you for a passphrase.
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 09:02 AM
тАО01-25-2006 09:02 AM
Re: PGP Shell Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 09:11 AM
тАО01-25-2006 09:11 AM
Solution$PGPPATH/pgp -esa +batchmode $PGPPATH/tmp/filename herkey -u mykey
The way you listed the execution in your script, you are redirecting stdout and stderr to the log file. If you want stdout to also appear on the screen (which should display the prompt), you can use the tee command:
$PGPPATH/pgp -esa +batchmode $PGPPATH/tmp/filename herkey -u mykey 2>&1 | tee -a $PGPPATH/pgp_test.log
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 10:27 AM
тАО01-25-2006 10:27 AM
Re: PGP Shell Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 02:22 PM
тАО01-25-2006 02:22 PM
Re: PGP Shell Script
THANKS !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 02:25 PM
тАО01-25-2006 02:25 PM