<?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: unable to execute a script from cron, but possible from shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545888#M370022</link>
    <description>&lt;P&gt;&amp;gt;the issue is in this line of the script&lt;BR /&gt;&amp;gt;/opt/perf/bin/glance -j 1 -f $LOG_FILE -iterations 1 adviser_only &amp;gt; /dev/null&lt;BR /&gt;&amp;gt;the command is not able to write in to the file. the file permission is 777 for the log_file.&lt;BR /&gt;&lt;BR /&gt;What is the value of LOG_FILE? (Use "ll $LOG_FILE" in your script to check the permissions.)&lt;BR /&gt;You may not want to send the output to /dev/null, there may be error messages there.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2012 04:32:28 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2012-07-06T04:32:28Z</dc:date>
    <item>
      <title>unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545877#M370011</link>
      <description>I am using the attached shell script. when i execute it from CLI it is working fine. But when i set it as cron  it is not executing correctly and giving result as 'thread value not found for process. process might be stopped'</description>
      <pubDate>Tue, 08 Dec 2009 08:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545877#M370011</guid>
      <dc:creator>jerish sunny</dc:creator>
      <dc:date>2009-12-08T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545878#M370012</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;could you provide the line from crontab ??? &lt;BR /&gt;&lt;BR /&gt;most of this error is there is no full path to the script or shell defined .....&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Tue, 08 Dec 2009 09:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545878#M370012</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-12-08T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545879#M370013</link>
      <description>You should always use full pathes to binaries!&lt;BR /&gt;&lt;BR /&gt;Not&lt;BR /&gt;&lt;BR /&gt;"application"&lt;BR /&gt;&lt;BR /&gt;but&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/application&lt;BR /&gt;&lt;BR /&gt;for example.</description>
      <pubDate>Tue, 08 Dec 2009 09:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545879#M370013</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-12-08T09:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545880#M370014</link>
      <description>0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/opt/TnDM/threadscript/ThreadCount.sh &amp;gt; /var/opt/TnDM/threadscript/debug.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;This is the crontab link</description>
      <pubDate>Tue, 08 Dec 2009 09:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545880#M370014</guid>
      <dc:creator>jerish sunny</dc:creator>
      <dc:date>2009-12-08T09:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545881#M370015</link>
      <description>my understanding is that it is not able to write the value into the file  $LOG_FILE.&lt;BR /&gt;in this line /opt/perf/bin/glance -j 1 -f $LOG_FILE -iterations 1 adviser_only &amp;gt; /dev/null</description>
      <pubDate>Tue, 08 Dec 2009 09:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545881#M370015</guid>
      <dc:creator>jerish sunny</dc:creator>
      <dc:date>2009-12-08T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545882#M370016</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i tink you should define shell before the &lt;BR /&gt;&lt;BR /&gt;/bin/sh ( for example ) /var/opt/TnDM/threadscript/ThreadCount.sh &lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Tue, 08 Dec 2009 09:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545882#M370016</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-12-08T09:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545883#M370017</link>
      <description>i tried adding  /usr/bin/sh but no difference in output</description>
      <pubDate>Tue, 08 Dec 2009 09:17:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545883#M370017</guid>
      <dc:creator>jerish sunny</dc:creator>
      <dc:date>2009-12-08T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545884#M370018</link>
      <description>I'm sure you will find something like "not found" in your debug.txt, because you use awk etc. without path.</description>
      <pubDate>Tue, 08 Dec 2009 09:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545884#M370018</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-12-08T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545885#M370019</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;There is a problem in glance command, I also faced the same problem long back. Whenever you execute the script manually, you can be. but while executing through cron, you can't. I am sure this is because of glance command only...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Other problem may be because of profile file, you execute .profile file with the absolute path in the top of the script as while login into the server, the profile will get executed which used to set all environment variable for you. but while its in cronjob, you need to execute it manually...&lt;BR /&gt;&lt;BR /&gt;like: "./~home/.profile"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Piyush Mathiya&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2009 09:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545885#M370019</guid>
      <dc:creator>piyush mathiya</dc:creator>
      <dc:date>2009-12-08T09:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545886#M370020</link>
      <description># whereis echo&lt;BR /&gt;echo: /usr/bin/echo /usr/share/man/man1.Z/echo.1 /usr/share/man/man3.Z/echo.3x&lt;BR /&gt;# whereis awk&lt;BR /&gt;awk: /sbin/awk /usr/bin/awk /usr/share/man/man1.Z/awk.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What does your debug file tell you?</description>
      <pubDate>Tue, 08 Dec 2009 09:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545886#M370020</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-12-08T09:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from CLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545887#M370021</link>
      <description>the issue is in this line of the script &lt;BR /&gt;/opt/perf/bin/glance -j 1 -f $LOG_FILE -iterations 1 adviser_only &amp;gt; /dev/null&lt;BR /&gt;the command is not able to write in to the file. the file permission is 777 for the log_file.</description>
      <pubDate>Tue, 08 Dec 2009 09:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545887#M370021</guid>
      <dc:creator>jerish sunny</dc:creator>
      <dc:date>2009-12-08T09:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute a script from cron, but possible from shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545888#M370022</link>
      <description>&lt;P&gt;&amp;gt;the issue is in this line of the script&lt;BR /&gt;&amp;gt;/opt/perf/bin/glance -j 1 -f $LOG_FILE -iterations 1 adviser_only &amp;gt; /dev/null&lt;BR /&gt;&amp;gt;the command is not able to write in to the file. the file permission is 777 for the log_file.&lt;BR /&gt;&lt;BR /&gt;What is the value of LOG_FILE? (Use "ll $LOG_FILE" in your script to check the permissions.)&lt;BR /&gt;You may not want to send the output to /dev/null, there may be error messages there.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 04:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-execute-a-script-from-cron-but-possible-from-cli/m-p/4545888#M370022</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-07-06T04:32:28Z</dc:date>
    </item>
  </channel>
</rss>

