<?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 Sysadmin chuckle whats wrong with this code in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859576#M868321</link>
    <description>cd `dirname $0` || exit 1&lt;BR /&gt;casdir `pwd`&lt;BR /&gt;&lt;BR /&gt;Hint: It will work from the command line. It won't work when the system is restarted. &lt;BR /&gt;&lt;BR /&gt;These are the first two lines of uncommented code in this script.&lt;BR /&gt;&lt;BR /&gt;10 points to the any answers that I think didn't benefit from a posted answer.&lt;BR /&gt;&lt;BR /&gt;I won't identify the company involved. Lets just say it was provided by a large application company.&lt;BR /&gt;&lt;BR /&gt;Is there any scenario under which this code could have been successfully tested on an HP-9000 server at start time?&lt;BR /&gt;&lt;BR /&gt;Please tell me. That's worth a bunny too.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 03 Sep 2004 14:04:32 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-09-03T14:04:32Z</dc:date>
    <item>
      <title>Sysadmin chuckle whats wrong with this code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859576#M868321</link>
      <description>cd `dirname $0` || exit 1&lt;BR /&gt;casdir `pwd`&lt;BR /&gt;&lt;BR /&gt;Hint: It will work from the command line. It won't work when the system is restarted. &lt;BR /&gt;&lt;BR /&gt;These are the first two lines of uncommented code in this script.&lt;BR /&gt;&lt;BR /&gt;10 points to the any answers that I think didn't benefit from a posted answer.&lt;BR /&gt;&lt;BR /&gt;I won't identify the company involved. Lets just say it was provided by a large application company.&lt;BR /&gt;&lt;BR /&gt;Is there any scenario under which this code could have been successfully tested on an HP-9000 server at start time?&lt;BR /&gt;&lt;BR /&gt;Please tell me. That's worth a bunny too.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 03 Sep 2004 14:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859576#M868321</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-03T14:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sysadmin chuckle whats wrong with this code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859577#M868323</link>
      <description>hmm..is the script name casdir and this script is included in the startup ? Am I understanding your question correctly ?</description>
      <pubDate>Fri, 03 Sep 2004 14:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859577#M868323</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-03T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sysadmin chuckle whats wrong with this code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859578#M868324</link>
      <description>script name is cas&lt;BR /&gt;&lt;BR /&gt;casdir is their attempt to set an environment variable for later use.&lt;BR /&gt;&lt;BR /&gt;first line of code is supposed to cd to the directory the script lives in otherwise exit, because the script doesn't exist.&lt;BR /&gt;&lt;BR /&gt;That in itself is a little strange because if the code is executing the script clearly exists. Still, it makes sense because if the directory doesn't exist the process can't possbily succeed.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 03 Sep 2004 14:19:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859578#M868324</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-03T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sysadmin chuckle whats wrong with this code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859579#M868325</link>
      <description>If caddir `pwd` is suppose to be setting an environment variable, then should it be&lt;BR /&gt;casdir=`pwd`&lt;BR /&gt; or&lt;BR /&gt;. casdir `pwd`  (if casdir is a script...)&lt;BR /&gt;&lt;BR /&gt;We aren't talking csh here are we?&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 03 Sep 2004 14:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859579#M868325</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-09-03T14:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sysadmin chuckle whats wrong with this code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859580#M868326</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;could you please be more specific about&lt;BR /&gt;start time and&lt;BR /&gt;restarted?&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Sep 2004 14:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859580#M868326</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-09-03T14:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sysadmin chuckle whats wrong with this code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859581#M868327</link>
      <description>Right answer with the bunny.&lt;BR /&gt;&lt;BR /&gt;Whats wrong with the code is it needs a PATH variable which is not present when a system is starting.&lt;BR /&gt;&lt;BR /&gt;How this code ended up in my lap, I don't know.&lt;BR /&gt;&lt;BR /&gt;I'm probably going to ask Dan to nuke this thread.  &lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 03 Sep 2004 14:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sysadmin-chuckle-whats-wrong-with-this-code/m-p/4859581#M868327</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-03T14:49:06Z</dc:date>
    </item>
  </channel>
</rss>

