<?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: Script problem Please help ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560419#M918407</link>
    <description>Because when Cron run , it does't the environment ( especially the PATH), so you should use the command with the absolute path .&lt;BR /&gt;&lt;BR /&gt;One more thing , cron is always run in "sh".&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Aug 2001 05:55:06 GMT</pubDate>
    <dc:creator>Frank Li</dc:creator>
    <dc:date>2001-08-02T05:55:06Z</dc:date>
    <item>
      <title>Script problem Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560418#M918406</link>
      <description>I have write following scritp to retrieve some data from omstat command. It work fine when I run it manually (output : 12:57:35  1133). But when I schedule crontab (* 8-18 * * * /home/user.ksh) it output only the time only without show the quantity. WHY ??&lt;BR /&gt;&lt;BR /&gt;Script file contents:-&lt;BR /&gt;&lt;BR /&gt;#! /bin/ksh&lt;BR /&gt;&lt;BR /&gt;cd /home&lt;BR /&gt;clear&lt;BR /&gt;&lt;BR /&gt;count=`omstat -s |grep Remote |awk '{print $6}'`&lt;BR /&gt;time=`date|awk '{print $4}'`&lt;BR /&gt;&lt;BR /&gt;echo ""$time"\t"$count""  &amp;gt;&amp;gt; user.txt&lt;BR /&gt;&lt;BR /&gt;=============================================</description>
      <pubDate>Thu, 02 Aug 2001 05:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560418#M918406</guid>
      <dc:creator>Kenn Chen</dc:creator>
      <dc:date>2001-08-02T05:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560419#M918407</link>
      <description>Because when Cron run , it does't the environment ( especially the PATH), so you should use the command with the absolute path .&lt;BR /&gt;&lt;BR /&gt;One more thing , cron is always run in "sh".&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2001 05:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560419#M918407</guid>
      <dc:creator>Frank Li</dc:creator>
      <dc:date>2001-08-02T05:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560420#M918408</link>
      <description>You could get your environment variables in relatively easily by sourcing your .profile&lt;BR /&gt;&lt;BR /&gt;eg add near the top of your script&lt;BR /&gt;&lt;BR /&gt;. &lt;USERNAME_HOME_DIR&gt;/.profile&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/USERNAME_HOME_DIR&gt;</description>
      <pubDate>Thu, 02 Aug 2001 11:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560420#M918408</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2001-08-02T11:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560421#M918409</link>
      <description>Hi&lt;BR /&gt;   When run in cron the goodies like PATH etc are not set.&lt;BR /&gt;  Cron does not login so the all the setting need to be specially set.&lt;BR /&gt;&lt;BR /&gt;PRB</description>
      <pubDate>Thu, 02 Aug 2001 12:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560421#M918409</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-08-02T12:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560422#M918410</link>
      <description>Always use full path names for your commands and file names, since cron uses only the standard environment of /usr/bin/sh and does not know about your environment, for example, your current directory, variables and PATH. By default, crontab opens the user's own cron file. Check your ~/.profile.</description>
      <pubDate>Thu, 02 Aug 2001 13:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560422#M918410</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2001-08-02T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560423#M918411</link>
      <description>Hello here are 2 posts that brought up the same question.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x99a772234586d5118ff00090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x99a772234586d5118ff00090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x026746ff9277d511abcd0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x026746ff9277d511abcd0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2001 13:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem-please-help/m-p/2560423#M918411</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-02T13:02:44Z</dc:date>
    </item>
  </channel>
</rss>

