<?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 executing external command to decrypt PGP files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028290#M415986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to decrypt a .pgp file with GnuPG 1.4.6.  I created a batch job with this command:&lt;/P&gt;&lt;P&gt;gpg --passphrase-fd 0 --decrypt-files *.pgp &amp;lt; {passphrase file}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the batch job through a Windows cmd line, it decrypts fine.  When I call it through SM69, (with cmd /c {batch job file name}, the decryption fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears maybe the redirect changes the passphrase that is passing into gpg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have experience with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2007 19:47:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-07T19:47:37Z</dc:date>
    <item>
      <title>executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028290#M415986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to decrypt a .pgp file with GnuPG 1.4.6.  I created a batch job with this command:&lt;/P&gt;&lt;P&gt;gpg --passphrase-fd 0 --decrypt-files *.pgp &amp;lt; {passphrase file}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the batch job through a Windows cmd line, it decrypts fine.  When I call it through SM69, (with cmd /c {batch job file name}, the decryption fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears maybe the redirect changes the passphrase that is passing into gpg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have experience with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 19:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028290#M415986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T19:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028291#M415987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this will be definitely due to the redirection symbol &amp;lt;. Actually redirection directive is not passed to the command, but here SAP SM69 will try to pass it to the command which is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the operating system, the shell will not allow the command, here gpg, to see redirection symbol &amp;lt;. So I would suggest you to encapsulate the command in a shell script and use the shell script name as a command in SM69. That will definitely solve your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 19:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028291#M415987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028292#M415988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once again reading your query, I realize that you are using batch file on Windows. If that is the case, I would suggest you to put the batch file in some system accessible path (PATH variable) and directly use the &amp;lt;batch job name&amp;gt; without cmd /c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 20:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028292#M415988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028293#M415989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sri Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are right about the redirection, but using the PATH variable to avoid cmd /c did not change the results.  I've also tried to pipe the passphrase with an echo, and that too gets the same reaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 20:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028293#M415989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T20:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028294#M415990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik, I suppose you are using a batchfile name as your command and encapsulated the full pgp command inside that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that info, are you using the full path name to the batchfile like say "C:\Program Files\Myexecutabl.bat" in the OS command field, in SM69? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to either provide full path to the batch file or put the batch file in a path present in the system PATH variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 20:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028294#M415990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T20:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028295#M415991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;batch file name as my command, yes.  pgp cmd inside it, yes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the batch file in a PATH folder, but I also tried the former (full path in SM69), and neither solves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 21:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028295#M415991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T21:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: executing external command to decrypt PGP files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028296#M415992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for posterity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured this out.  I created a scheduled task containing the batch file.  The external command calls this scheduled task, and the pgp command runs as normal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 23:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-external-command-to-decrypt-pgp-files/m-p/2028296#M415992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T23:08:07Z</dc:date>
    </item>
  </channel>
</rss>

