<?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: Cron Job Problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574169#M809013</link>
    <description>I had the same problem. Double check your script if it's executable.</description>
    <pubDate>Wed, 05 Oct 2005 10:47:51 GMT</pubDate>
    <dc:creator>Jacques Carriere</dc:creator>
    <dc:date>2005-10-05T10:47:51Z</dc:date>
    <item>
      <title>Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574164#M809008</link>
      <description>Hi people,&lt;BR /&gt;  I use the cron job to auto shutdown the workstations on every 11p.m. Things were getting ok for a week and the workstations could shutdown automatically.&lt;BR /&gt;  I've read the //usr/lib/cron/log file states that "rc=126" at the right side of the cron statement that can't be done.&lt;BR /&gt;  What is the solution for this case?&lt;BR /&gt;  Thanks in advaced.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Sep 2001 08:28:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574164#M809008</guid>
      <dc:creator>Hill_1</dc:creator>
      <dc:date>2001-09-03T08:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574165#M809009</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;think rc=## is the return code of the cron job (return value $?)&lt;BR /&gt;So something has failed and returned this value.&lt;BR /&gt;Have you checked the root mail for any reasons ?&lt;BR /&gt;Perhaps you have a shutdown command in the cron job but not a cd / at the beginning (just a guess because shutdown only works if the current dir is /)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 03 Sep 2001 08:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574165#M809009</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-09-03T08:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574166#M809010</link>
      <description>&lt;BR /&gt;error code 126 indicates something is wrong with your crontab entry or file (illegal entry in it). Check you cron file carefully for any mistakes/illegal entries.</description>
      <pubDate>Mon, 03 Sep 2001 08:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574166#M809010</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-03T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574167#M809011</link>
      <description>Hi,&lt;BR /&gt;it is(rc126) is the return code from cron process, u need to check the error code which stands for 126.</description>
      <pubDate>Mon, 03 Sep 2001 09:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574167#M809011</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-09-03T09:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574168#M809012</link>
      <description>Hi all ;&lt;BR /&gt;I've similar problem.I've wrote a SMS script in order to inform me about status of mount point.It's running from  &lt;BR /&gt;shell but cron gives me error rc=126.&lt;BR /&gt;&lt;BR /&gt;I've added &lt;BR /&gt;&lt;BR /&gt;01 * * * * * /usr/bin/ksh /SMSScript/check_qsc_arch_check.ksh &amp;gt; /SMSScript/SMSScript.log 2&amp;gt; /SMSScript/SMSScript_error.log&lt;BR /&gt;line to cron in order to make script run. But I'm getting "sh:HP: Execute permission denied" error. &lt;BR /&gt;&lt;BR /&gt;My OS version is HP-UX 11.00.&lt;BR /&gt;&lt;BR /&gt;Here is script :&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#This script will check /qsc_arch directory. If it is used more than %80, it will send SMS&lt;BR /&gt;export SMSCLASS_PATH="/opt/java1.3/jre/bin"&lt;BR /&gt;export BDF="/usr/bin/bdf"&lt;BR /&gt;export FIND='/usr/bin/find'&lt;BR /&gt;export ARCHDIR="/qscora/oradata/arch"&lt;BR /&gt;typeset -i percent_full&lt;BR /&gt;percent_full=`$BDF $ARCHDIR|grep $ARCHDIR|awk '{print $5}'|sed 's/%//'`&lt;BR /&gt;echo $percent_full&lt;BR /&gt;if [ percent_full -ge 6 ]; then&lt;BR /&gt;      text="\"/qscarch is full by % `echo $percent_full` \""&lt;BR /&gt;      cd /opt/java1.3/jre/bin/&lt;BR /&gt;      echo "$SMSCLASS_PATH/java -classpath $SMSCLASS_PATH SMSTest 9230 905552552031 $text 0" &amp;gt; /SMSScript/SMSCmdtext&lt;BR /&gt;        /usr/bin/ksh /SMSScript/SMSCmdtext&lt;BR /&gt; &lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you please help me about ?</description>
      <pubDate>Tue, 27 May 2003 07:54:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574168#M809012</guid>
      <dc:creator>Mehmet Ali Ersoy_1</dc:creator>
      <dc:date>2003-05-27T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574169#M809013</link>
      <description>I had the same problem. Double check your script if it's executable.</description>
      <pubDate>Wed, 05 Oct 2005 10:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574169#M809013</guid>
      <dc:creator>Jacques Carriere</dc:creator>
      <dc:date>2005-10-05T10:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574170#M809014</link>
      <description>Execute your script with debugging on i.e.&lt;BR /&gt;&lt;BR /&gt;# sh -x &amp;lt;script_name&amp;gt;&lt;BR /&gt;&lt;BR /&gt;thru cron and from the command line and compare the differences. This will help in determining the root cause of the problem. Could you also post your script so that it can be examined.&lt;BR /&gt;&lt;BR /&gt;regards!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Oct 2005 11:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/2574170#M809014</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-10-05T11:41:38Z</dc:date>
    </item>
  </channel>
</rss>

