<?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: problem in running a shell script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003247#M75340</link>
    <description>Hello!&lt;BR /&gt;&lt;BR /&gt;It's because your "." directory not in your&lt;BR /&gt;PATH, if you run it you can run by adding "./"&lt;BR /&gt;to the name : ./ypcompile&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
    <pubDate>Fri, 20 Jun 2003 09:59:43 GMT</pubDate>
    <dc:creator>Caesar_3</dc:creator>
    <dc:date>2003-06-20T09:59:43Z</dc:date>
    <item>
      <title>problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003246#M75339</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One last question for the day.  Why is it when ever I download a .tar.gz file then extract it, I have problems in running the shell script. &lt;BR /&gt;&lt;BR /&gt;I have the following error: &lt;BR /&gt;&lt;BR /&gt;[root@TSHDSFW yahoopops-0.4.5]# pwd&lt;BR /&gt;/home/downloads/Yahoopops/yahoopops-0.4.5&lt;BR /&gt;[root@TSHDSFW yahoopops-0.4.5]# ls&lt;BR /&gt;common  docs  README  src  ypcompile  ypcompilelinux  ypinstalllinux&lt;BR /&gt;[root@TSHDSFW yahoopops-0.4.5]# ypcompile&lt;BR /&gt;-bash: ypcompile: command not found&lt;BR /&gt;[root@TSHDSFW yahoopops-0.4.5]#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;attached is the shell script&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jun 2003 09:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003246#M75339</guid>
      <dc:creator>Francis Ancheta</dc:creator>
      <dc:date>2003-06-20T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003247#M75340</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;It's because your "." directory not in your&lt;BR /&gt;PATH, if you run it you can run by adding "./"&lt;BR /&gt;to the name : ./ypcompile&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Fri, 20 Jun 2003 09:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003247#M75340</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-20T09:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003248#M75341</link>
      <description>Try &lt;BR /&gt;./ypcompile&lt;BR /&gt;You have to add ./ when script is not an internal command.&lt;BR /&gt;&lt;BR /&gt;Good night !&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Fri, 20 Jun 2003 10:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003248#M75341</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-06-20T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003249#M75342</link>
      <description>Ceasar Thanks ... he he he ... I used to laugh at my students in Microsoft if they had problems like this ... Dose of my own medicine.&lt;BR /&gt;&lt;BR /&gt;one thing I learned in Linux that Microsoft ignores.&lt;BR /&gt;&lt;BR /&gt;"Little things matter in Linux even if its just a dot a slash or a capital letter"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jun 2003 10:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003249#M75342</guid>
      <dc:creator>Francis Ancheta</dc:creator>
      <dc:date>2003-06-20T10:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003250#M75343</link>
      <description>you can add the '.' directory to the PATH variable so:&lt;BR /&gt;&lt;BR /&gt;export PATH=$PATH:.&lt;BR /&gt;&lt;BR /&gt;you can add this line in /etc/bashrc (to execute it for all the users, when they log in) or in&lt;BR /&gt;the file .bashrc in the home directories of the users that want it.&lt;BR /&gt;&lt;BR /&gt;hello&lt;BR /&gt;Claudio&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jun 2003 10:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003250#M75343</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-06-20T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003251#M75344</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;that is because your current directory(.) is not in the path.&lt;BR /&gt;&lt;BR /&gt;do an echo $PATH&lt;BR /&gt;&lt;BR /&gt;and u will see that ur current directory is not there.&lt;BR /&gt;&lt;BR /&gt;so do an ./ypcompile.&lt;BR /&gt;&lt;BR /&gt;and dont try adding current directory to your path. it is considered a bad practice.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://theory.uwinnipeg.ca/faqs/unixfaqs.html#2.13" target="_blank"&gt;http://theory.uwinnipeg.ca/faqs/unixfaqs.html#2.13&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Fri, 20 Jun 2003 10:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003251#M75344</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-06-20T10:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003252#M75345</link>
      <description>hmm.. this forum is brimming with activity. when i clicked on the reply button, there was no replies. and when i see my reply, there are 5 more replies and the OP has already re-posted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;way to go....&lt;BR /&gt;and me need to be more attentive to grab those bunnies. ha ha ha&lt;BR /&gt;-balaji (weekend is fun....)</description>
      <pubDate>Fri, 20 Jun 2003 10:51:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003252#M75345</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-06-20T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003253#M75346</link>
      <description>Same issue for me Balaji ! What do you plan for the w.e. ?&lt;BR /&gt;&lt;BR /&gt;I 100% agree with the path issue, which is bad practice, and dangerous as for security reasons. That's why I didn't suggest it, but it's still possible and technically correct.&lt;BR /&gt;A good old ./ seems better anyway.&lt;BR /&gt;J&lt;BR /&gt;(celebrating longuest day of the year this w.e.).</description>
      <pubDate>Fri, 20 Jun 2003 11:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003253#M75346</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-06-20T11:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003254#M75347</link>
      <description>oh! jerome! hmmm... we are hijacking this thread again. &lt;BR /&gt;&lt;BR /&gt;me need to catch up with a few friends and party. nothing specific other than that. &lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Fri, 20 Jun 2003 11:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003254#M75347</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-06-20T11:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem in running a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003255#M75348</link>
      <description>I never thought about it could be a security risk. And it isn't difficult to figure out why.&lt;BR /&gt;nevertheless this, I agree with you: it's a good idea specify explicitely that I want execute the command that resides in the current directory.&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;Claudio</description>
      <pubDate>Fri, 20 Jun 2003 11:30:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-in-running-a-shell-script/m-p/3003255#M75348</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-06-20T11:30:44Z</dc:date>
    </item>
  </channel>
</rss>

