<?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: PATH in X command Linux in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433526#M12137</link>
    <description>&lt;P&gt;My Object Spawner runs as sasinst.&lt;/P&gt;&lt;P&gt;This is sasinst's path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;[sasinst@zew-v-0a2f0b04 bin]$ echo $PATH&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;/apps/sas/thirdparty/pm/9.1/bin:/apps/sas/thirdparty/pm/9.1/linux2.6-glibc2.3-x86_64/bin:/apps/sas/thirdparty/lsf/9.1/linux2.6-glibc2.3-x86_64/etc:/apps/sas/thirdparty/lsf/9.1/linux2.6-glibc2.3-x86_64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin:/home/sasinst/bin&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;[sasinst@zew-v-0a2f0b04 bin]$&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;setenv_local contains these lines:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;PATH=$ORACLE_HOME/bin:$PATH&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;export PATH&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't see any other files in &amp;lt;SASHome&amp;gt;/SASFoundation/9.4/bin that modify the PATH:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;[sasinst@zew-v-0a2f0b04 bin]$ grep PATH /apps/sas/SASHome/SASFoundation/9.4/bin/* | grep -v LIBRARY_PATH | grep -v SASCFGPATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local:PATH=$ORACLE_HOME/bin:$PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local:export PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local.backup.20160216:PATH=$ORACLE_HOME/bin:$PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local.backup.20160216:export PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;[sasinst@zew-v-0a2f0b04 bin]$&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 14:11:49 GMT</pubDate>
    <dc:creator>bheinsius</dc:creator>
    <dc:date>2018-02-02T14:11:49Z</dc:date>
    <item>
      <title>PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433180#M12119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I login to Linux i see this PATH:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[EUROPE\bart.heinsius-b@zew-v-0a2f0b04 ~]$ echo $PATH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/apps/sas/thirdparty/pm/9.1/bin:/apps/sas/thirdparty/pm/9.1/linux2.6-glibc2.3-x86_64/bin:/apps/sas/thirdparty/lsf/9.1/linux2.6-glibc2.3-x86_64/etc:/apps/sas/thirdparty/lsf/9.1/linux2.6-glibc2.3-x86_64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin:/home/bart.heinsius-b/bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[EUROPE\bart.heinsius-b@zew-v-0a2f0b04 ~]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I submit x 'echo $PATH &amp;gt; /tmp/path.txt' from a SAS session running as me I see this PATH:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[EUROPE\bart.heinsius-b@zew-v-0a2f0b04 ~]$ cat /tmp/path.txt&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/oracle/oracle-client/&lt;A href="http://11.2.0.3/client/bin:/oracle/oracle-client/11.2.0.3/client/bin:/usr/bin:/bin" target="_blank"&gt;11.2.0.3/client/bin:/oracle/oracle-client/11.2.0.3/client/bin:/usr/bin:/bin&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[EUROPE\bart.heinsius-b@zew-v-0a2f0b04 ~]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why are they different?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433180#M12119</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2018-02-01T17:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433185#M12120</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13625"&gt;@bheinsius&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;It appears that you have you changed PATH in /&amp;lt;SASHome&amp;gt;/SASFoundation/9.4/bin/sasenv_local&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433185#M12120</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-02-01T17:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433186#M12121</link>
      <description>&lt;P&gt;A SAS session started by the spawner (ie all workspace servers used by EG or SAS Studio) inherits its environment from the spawner; this is usually that of the SAS install user.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433186#M12121</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-01T17:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433390#M12129</link>
      <description>&lt;P&gt;Do you modify $PATH in any way in&amp;nbsp;&amp;lt;&amp;lt;SASHOME&amp;gt;&amp;gt;/SASFoundation/9.4/binsasenv_local ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433390#M12129</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-02-02T06:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433526#M12137</link>
      <description>&lt;P&gt;My Object Spawner runs as sasinst.&lt;/P&gt;&lt;P&gt;This is sasinst's path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;[sasinst@zew-v-0a2f0b04 bin]$ echo $PATH&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;/apps/sas/thirdparty/pm/9.1/bin:/apps/sas/thirdparty/pm/9.1/linux2.6-glibc2.3-x86_64/bin:/apps/sas/thirdparty/lsf/9.1/linux2.6-glibc2.3-x86_64/etc:/apps/sas/thirdparty/lsf/9.1/linux2.6-glibc2.3-x86_64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin:/home/sasinst/bin&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;[sasinst@zew-v-0a2f0b04 bin]$&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;setenv_local contains these lines:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;PATH=$ORACLE_HOME/bin:$PATH&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;export PATH&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't see any other files in &amp;lt;SASHome&amp;gt;/SASFoundation/9.4/bin that modify the PATH:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;[sasinst@zew-v-0a2f0b04 bin]$ grep PATH /apps/sas/SASHome/SASFoundation/9.4/bin/* | grep -v LIBRARY_PATH | grep -v SASCFGPATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local:PATH=$ORACLE_HOME/bin:$PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local:export PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local.backup.20160216:PATH=$ORACLE_HOME/bin:$PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;/apps/sas/SASHome/SASFoundation/9.4/bin/sasenv_local.backup.20160216:export PATH&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;[sasinst@zew-v-0a2f0b04 bin]$&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433526#M12137</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2018-02-02T14:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433529#M12138</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13625"&gt;@bheinsius&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;This is sasinst's path:&lt;BR /&gt;[sasinst@zew-v-0a2f0b04 bin]$ echo $PATH&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where were those variables defined? Profile or bashrc? Personal or global? How exactly you start the object spawner? From interactive or non-interactive shell?&lt;/P&gt;
&lt;P&gt;For me, it seems like you have defined those variables in your personal profile but starting the object spawner in a non-interactive shell.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433529#M12138</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-02-02T14:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433533#M12139</link>
      <description>&lt;P&gt;In my case (SAS 9.4 TS1M2 on AIX 7), the PATH retrieved by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "echo $PATH";
data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in a workspace server session from EG is exactly the same as in the SAS install user's .profile and the same that I get when I do a su - to the SAS install user.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/433533#M12139</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-02T14:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/434792#M12186</link>
      <description>&lt;P&gt;Thanks for your answers and suggestions.&lt;/P&gt;&lt;P&gt;I solved it but i don't know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added /usr/local/bin to the PATH setting in /home/sasinst/.bash_profile and restarted the spawner, to see if this would be picked up in the X command shell.&lt;/P&gt;&lt;P&gt;To my surprise I saw that not only /usr/local/bin was added to the path, but the&amp;nbsp;complete path was now available in the X command shell, identical to the path I get in a regular bash shell.&lt;/P&gt;&lt;P&gt;I then removed /usr/local/bin from the PATH setting again and the correct path - now without /usr/local/bin - was still there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems not to be caused by restarting the spawner because we do that every morning. Maybe an incorrect CRLF somewhere that got removed after my editing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like we say in Dutch: vraag niet hoe het kan maar profiteer ervan! (Don't ask why&amp;nbsp;just take advantage of it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 09:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/434792#M12186</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2018-02-07T09:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: PATH in X command Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/437921#M12308</link>
      <description>&lt;P&gt;I found the actual reason for this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS environment on this machine is restarted every morning using a cron scheduled task using something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;/apps/sas/SASConfig/Lev5/sas.servers stop &amp;amp;&amp;amp;&amp;nbsp;/apps/sas/SASConfig/Lev5/sas.servers start&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At &lt;A href="https://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables" target="_blank"&gt;https://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables&lt;/A&gt; I read this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;CODE&gt;Cron&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;knows nothing about your shell; it is started by the system, so it has a minimal environment.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Changing the cron command to (something like) this fixed the problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;/bin/bash -l -c '/apps/sas/SASConfig/Lev5/sas.servers stop &amp;amp;&amp;amp;&amp;nbsp;/apps/sas/SASConfig/Lev5/sas.servers start'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the &lt;STRONG&gt;-l&lt;/STRONG&gt; (lowercase L) makes bash act as if it had been invoked as a login shell and results in the&amp;nbsp;Object Spawner being started with the full sasinst path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 09:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PATH-in-X-command-Linux/m-p/437921#M12308</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2018-02-16T09:44:09Z</dc:date>
    </item>
  </channel>
</rss>

