<?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: I perform a unix shell script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294783#M500967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter is spot on, but just to clarify using SM69 (and expand a little), it's not really a command, just a reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example to execute your script, just create through SM69 with a command of ZTEST and then the Operating system command is the location of your script on the app server. Then call 'ZTEST' from FM SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure the body of your script starts with something # !/bin/ksh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 11:17:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T11:17:51Z</dc:date>
    <item>
      <title>I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294778#M500962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I perform a unix shell script on SAP system ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ragards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        erdem sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294778#M500962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T10:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294779#M500963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM SXPG_COMMAND_EXECUTE or SXPG_COMMAND_EXECUTE_LONG.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294779#M500963</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2007-05-14T10:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294780#M500964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I is a really a script with not only one command. E.g a file&lt;/P&gt;&lt;P&gt;with many commands "test.sh" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294780#M500964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T10:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294781#M500965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create commands in SM69 and testing them in SM49. If you assign a command to your script you can execute it via the mentioned FM.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294781#M500965</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2007-05-14T10:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294782#M500966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:cmd(254) type c.&lt;/P&gt;&lt;P&gt;data: RESULT(255) OCCURS 100 WITH HEADER LINE. "No max length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cmd = './testscript.sh'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Execute command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  REFRESH RESULT.&lt;/P&gt;&lt;P&gt;  CALL 'SYSTEM' ID 'COMMAND' FIELD CMD&lt;/P&gt;&lt;P&gt;                ID 'TAB'     FIELD RESULT-&lt;STRONG&gt;SYS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294782#M500966</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-14T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294783#M500967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter is spot on, but just to clarify using SM69 (and expand a little), it's not really a command, just a reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example to execute your script, just create through SM69 with a command of ZTEST and then the Operating system command is the location of your script on the app server. Then call 'ZTEST' from FM SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure the body of your script starts with something # !/bin/ksh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294783#M500967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: I perform a unix shell script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294784#M500968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stored my script on /usr/sap/ADE&lt;/P&gt;&lt;P&gt;named "aus.sh". Further on I have created&lt;/P&gt;&lt;P&gt;an external command via SM69 "ZTEST"&lt;/P&gt;&lt;P&gt;By the input field "Operating system command" I gave the &lt;/P&gt;&lt;P&gt;location of my script:  /usr/sap/ADE/aus.sh&lt;/P&gt;&lt;P&gt;on the app server. Then I have called 'ZTEST' through &lt;/P&gt;&lt;P&gt;FM SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;I get the error message COMMAND_NOT_FOUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody say me what is wrong here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-perform-a-unix-shell-script/m-p/2294784#M500968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:12:05Z</dc:date>
    </item>
  </channel>
</rss>

