<?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: ksh script echoing path where script is located in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507250#M705288</link>
    <description>Cyrille MAUCCI wrote:&lt;BR /&gt;&amp;gt; Must be doing echo $0?&lt;BR /&gt;&lt;BR /&gt;Actually that would only display the program name as&lt;BR /&gt;invoked by user. So, if the user does not use absolute&lt;BR /&gt;path while running the program, $0 would not display&lt;BR /&gt;absolute path. My guess is, the script is using a &lt;BR /&gt;command like "which", "type" or "whereis".&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Mar 2005 17:33:10 GMT</pubDate>
    <dc:creator>Biswajit Tripathy</dc:creator>
    <dc:date>2005-03-18T17:33:10Z</dc:date>
    <item>
      <title>ksh script echoing path where script is located</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507245#M705280</link>
      <description>Our DBA has created a ksh script that is executable by some developers.  When the script is run, it displays the path to the directory that the script resides in.  He would like to have this suppressed.  Does anyone know of a way to do so?&lt;BR /&gt;&lt;BR /&gt;John Garrott</description>
      <pubDate>Thu, 17 Mar 2005 18:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507245#M705280</guid>
      <dc:creator>John Garrott</dc:creator>
      <dc:date>2005-03-17T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script echoing path where script is located</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507246#M705281</link>
      <description>Assuming I understand the question correctly, we&lt;BR /&gt;have to see the line of script that displays the path to &lt;BR /&gt;be able to answer this. &lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2005 18:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507246#M705281</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-03-17T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script echoing path where script is located</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507247#M705282</link>
      <description>The only way that I can think of that it would echo the path to output is if he has an "echo STRING" statement in the script.&lt;BR /&gt;&lt;BR /&gt;As stated above - let's see the script.</description>
      <pubDate>Thu, 17 Mar 2005 20:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507247#M705282</guid>
      <dc:creator>Stuart Abramson</dc:creator>
      <dc:date>2005-03-17T20:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script echoing path where script is located</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507248#M705283</link>
      <description>Must be doing echo $0?</description>
      <pubDate>Fri, 18 Mar 2005 05:20:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507248#M705283</guid>
      <dc:creator>MAUCCI_2</dc:creator>
      <dc:date>2005-03-18T05:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script echoing path where script is located</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507249#M705285</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I pesume you mean that when doing a ps -ef&lt;BR /&gt;other users can see the full path.&lt;BR /&gt;&lt;BR /&gt;Use the ln command to make a soft link from the users home dir to the script to run&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /bin/ps -ef|grep ps&lt;BR /&gt;    root    57     0  0  Mar 11  ?         0:00 supsched&lt;BR /&gt;      lp  1029     1  0  Mar 11  ?         0:10 /usr/sbin/lpsched&lt;BR /&gt;    root  1281     1  0  Mar 11  ?         1:18 /opt/sharedprint/bin/spserver&lt;BR /&gt;  steves  5302  5270  3 13:21:48 pts/0     0:00 /bin/ps -ef&lt;BR /&gt; &amp;gt;ln -s /bin/ps ps&lt;BR /&gt; &amp;gt;./ps -ef|grep ps&lt;BR /&gt;    root    57     0  0  Mar 11  ?         0:00 supsched&lt;BR /&gt;      lp  1029     1  0  Mar 11  ?         0:10 /usr/sbin/lpsched&lt;BR /&gt;    root  1281     1  0  Mar 11  ?         1:18 /opt/sharedprint/bin/spserver&lt;BR /&gt;  steves  5325  5270  4 13:22:21 pts/0     0:00 ./ps -ef&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Mar 2005 07:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507249#M705285</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2005-03-18T07:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script echoing path where script is located</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507250#M705288</link>
      <description>Cyrille MAUCCI wrote:&lt;BR /&gt;&amp;gt; Must be doing echo $0?&lt;BR /&gt;&lt;BR /&gt;Actually that would only display the program name as&lt;BR /&gt;invoked by user. So, if the user does not use absolute&lt;BR /&gt;path while running the program, $0 would not display&lt;BR /&gt;absolute path. My guess is, the script is using a &lt;BR /&gt;command like "which", "type" or "whereis".&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Mar 2005 17:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-echoing-path-where-script-is-located/m-p/3507250#M705288</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-03-18T17:33:10Z</dc:date>
    </item>
  </channel>
</rss>

