<?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 How to run clish commands via API 'run-script'? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4298#M388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm learning how to correctly use the 'run-script' API call, in addition to using the cpauto 'run_script' wrapper. I've had success with sending simple one-line bash commands per the documented example, but haven't yet figured out the best way to pass in multiline or clish commands to run-script. Does anyone have working examples to share? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2017 17:16:44 GMT</pubDate>
    <dc:creator>Bowman_Klinkenb</dc:creator>
    <dc:date>2017-07-21T17:16:44Z</dc:date>
    <item>
      <title>How to run clish commands via API 'run-script'?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4298#M388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm learning how to correctly use the 'run-script' API call, in addition to using the cpauto 'run_script' wrapper. I've had success with sending simple one-line bash commands per the documented example, but haven't yet figured out the best way to pass in multiline or clish commands to run-script. Does anyone have working examples to share? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 17:16:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4298#M388</guid>
      <dc:creator>Bowman_Klinkenb</dc:creator>
      <dc:date>2017-07-21T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to run clish commands via API 'run-script'?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4299#M389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using these 2 API's&lt;/P&gt;&lt;P&gt;1. put-file :&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/put-file~v1.1" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/put-file~v1.1"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. run-script&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/run-script~v1.1" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/run-script~v1.1"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2017 04:27:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4299#M389</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2017-07-29T04:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to run clish commands via API 'run-script'?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4300#M390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense, thanks. I'm assuming you are pushing out a shell script via 'put-file' and then executing it with 'run-script'? How do you manage cleanup of the scripts after?&amp;nbsp;Seems like a good idea, and I'll check into that more!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:49:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4300#M390</guid>
      <dc:creator>Bowman_Klinkenb</dc:creator>
      <dc:date>2017-08-03T18:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to run clish commands via API 'run-script'?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4301#M391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I'm&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;pushing out a shell script via 'put-file' and then executing it with 'run-script'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;How do you manage cleanup of the scripts after? run-script and the command to delete the file 'rm &amp;lt;filename&amp;gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;You can see this post about full flow of run-script :&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/5122"&gt;Can we get the routes from R80?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:10:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-run-clish-commands-via-API-run-script/m-p/4301#M391</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2017-08-04T17:10:08Z</dc:date>
    </item>
  </channel>
</rss>

