<?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: Add sources inside bash scripts in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-sources-inside-bash-scripts/m-p/72641#M4311</link>
    <description>The other sources appear to include items relevant for MDS and VSX.&lt;BR /&gt;These environment variables are not relevant for every script.&lt;BR /&gt;That said, if you are doing something on a per domain or per VS in your script, including them is probably a good idea.</description>
    <pubDate>Sun, 19 Jan 2020 19:13:09 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-01-19T19:13:09Z</dc:date>
    <item>
      <title>Add sources inside bash scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-sources-inside-bash-scripts/m-p/72630#M4310</link>
      <description>&lt;P&gt;To my understanding, the&amp;nbsp;&lt;SPAN&gt;call for Check Point shell script&amp;nbsp;(source /etc/profile.d/CP.sh) needs to be added at the very start of the script right after the sha-bang as per link below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_CLI_ReferenceGuide/html_frameset.htm?topic=documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_CLI_ReferenceGuide/205751" target="_blank"&gt;https://sc1.checkpoint.com/documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_CLI_ReferenceGuide/html_frameset.htm?topic=documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_CLI_ReferenceGuide/205751&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I couldn't help but notice however that in several other scripts like the health check script that several sources are specified:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#====================================================================================================&lt;/P&gt;&lt;P&gt;#&amp;nbsp; Check Point Sources&lt;/P&gt;&lt;P&gt;#====================================================================================================&lt;/P&gt;&lt;P&gt;source /etc/profile.d/CP.sh 2&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;source /etc/profile.d/vsenv.sh 2&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;source $MDSDIR/scripts/MDSprofile.sh 2&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;source $MDS_SYSTEM/shared/sh_utilities.sh 2&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;source $MDS_SYSTEM/shared/mds_environment_utils.sh 2&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As such, could somebody please explain to me if there are other calls we could use in our scripts apart from&amp;nbsp;&lt;SPAN&gt;source /etc/profile.d/CP.sh?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2020 11:39:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-sources-inside-bash-scripts/m-p/72630#M4310</guid>
      <dc:creator>Nick_Doropoulos</dc:creator>
      <dc:date>2020-01-19T11:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add sources inside bash scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-sources-inside-bash-scripts/m-p/72641#M4311</link>
      <description>The other sources appear to include items relevant for MDS and VSX.&lt;BR /&gt;These environment variables are not relevant for every script.&lt;BR /&gt;That said, if you are doing something on a per domain or per VS in your script, including them is probably a good idea.</description>
      <pubDate>Sun, 19 Jan 2020 19:13:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-sources-inside-bash-scripts/m-p/72641#M4311</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-01-19T19:13:09Z</dc:date>
    </item>
  </channel>
</rss>

