<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PGP Shell Script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955182#M100772</link>
    <description>It would not be scheduled through cron or at, but initiated by a user in front of terminal.</description>
    <pubDate>Wed, 25 Jan 2006 17:02:26 GMT</pubDate>
    <dc:creator>Michael Treacy</dc:creator>
    <dc:date>2006-01-25T17:02:26Z</dc:date>
    <item>
      <title>PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955180#M100770</link>
      <description>I need to script some batch commands for use with PGP 6.5.8 on our HP/UX.  I do not want to save the passphrase anywhere it might be compromised, so I need to have the client be prompted for it. The commands work fine interactively, however I cannot get the prompt to display on the screen when it is run in batch...&lt;BR /&gt;&lt;BR /&gt;How can I redirect stdin to the screen ?&lt;BR /&gt;&lt;BR /&gt;CRYPT&lt;BR /&gt;{&lt;BR /&gt;$PGPPATH/pgp -esa +batchmode $PGPPATH/tmp/filename herkey -u mykey &amp;gt;&amp;gt;$PGPPATH/pgp_test.log 2&amp;gt;&amp;amp;1 &amp;lt;&lt;END_CRYPT&gt;&lt;/END_CRYPT&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2006 16:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955180#M100770</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2006-01-25T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955181#M100771</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Wed, 25 Jan 2006 16:57:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955181#M100771</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-01-25T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955182#M100772</link>
      <description>It would not be scheduled through cron or at, but initiated by a user in front of terminal.</description>
      <pubDate>Wed, 25 Jan 2006 17:02:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955182#M100772</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2006-01-25T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955183#M100773</link>
      <description>When you say it works interactively, you mean the following works?&lt;BR /&gt;&lt;BR /&gt;$PGPPATH/pgp -esa +batchmode $PGPPATH/tmp/filename herkey -u mykey&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;$PGPPATH/pgp -esa +batchmode $PGPPATH/tmp/filename herkey -u mykey 2&amp;gt;&amp;amp;1 | tee -a $PGPPATH/pgp_test.log</description>
      <pubDate>Wed, 25 Jan 2006 17:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955183#M100773</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-01-25T17:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955184#M100774</link>
      <description>Michael why don't you declare a variable for the passphrase before you issue the pgp command.</description>
      <pubDate>Wed, 25 Jan 2006 18:27:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955184#M100774</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2006-01-25T18:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955185#M100775</link>
      <description>tee is a beautiful thing...&lt;BR /&gt;THANKS !!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2006 22:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955185#M100775</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2006-01-25T22:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955186#M100776</link>
      <description>$PGPPATH/pgp -esa $PGPPATH/tmp/filename herkey -u mykey |tee -a $PGPPATH/tmp/pgp_test.log</description>
      <pubDate>Wed, 25 Jan 2006 22:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pgp-shell-script/m-p/4955186#M100776</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2006-01-25T22:25:57Z</dc:date>
    </item>
  </channel>
</rss>

