<?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: At command error rc=127 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776147#M262269</link>
    <description>I had this recently. Had me stumped for at least 10 minutes.....&lt;BR /&gt;&lt;BR /&gt;Someone had added a cron entry with the wrong number of parameters....&lt;BR /&gt;&lt;BR /&gt;00 23 * * * 0-6 &lt;WHATEVER command="" it="" was=""&gt;&lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;&lt;BR /&gt;00 23 * * * &lt;WHATEVER command="" it="" was=""&gt;&lt;BR /&gt;&lt;BR /&gt;So, double check your man page and make sure you have the correct number of parameters!&lt;BR /&gt;&lt;BR /&gt;If it isn't that, on your cron command line just redirect the script output to a log file . Check the contents of the log file and it may indicate your problem.&lt;BR /&gt;&lt;BR /&gt;Col&lt;/WHATEVER&gt;&lt;/WHATEVER&gt;</description>
    <pubDate>Sun, 23 Apr 2006 18:07:10 GMT</pubDate>
    <dc:creator>Colin Topliss</dc:creator>
    <dc:date>2006-04-23T18:07:10Z</dc:date>
    <item>
      <title>At command error rc=127</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776144#M262266</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;Anyone can help me to resolve the issue below please. Everytime I run at command below, I always got an error rc=127. This actually happen on my SUN SOlaris server.But I believe this is similar to HPUX. &lt;BR /&gt;&lt;BR /&gt;[root@SUN_TEST:/etc/cron.d]&lt;BR /&gt;# su - SECUIOA -c "/bin/at -f /tmp/test.sh now"&lt;BR /&gt;&lt;BR /&gt;[root@SUN_TEST:/var/cron]&lt;BR /&gt;# tail log&lt;BR /&gt;&amp;gt;  CMD: 1145753543.a&lt;BR /&gt;&amp;gt;  SECUIOA 12013 a Sat Apr 22 20:52:23 2006&lt;BR /&gt;&amp;lt;  SECUIOA 12013 a Sat Apr 22 20:52:23 2006 rc=127&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help. High score will be given. &lt;BR /&gt;&lt;BR /&gt;Thanks and Best Regards,&lt;BR /&gt;Dewa&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Apr 2006 20:03:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776144#M262266</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2006-04-22T20:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: At command error rc=127</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776145#M262267</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Your cron job is getting a return code other than zero when it runs.&lt;BR /&gt;&lt;BR /&gt;That means it is encoutering an error.&lt;BR /&gt;&lt;BR /&gt;I recommend the following:&lt;BR /&gt;&lt;BR /&gt;add this near the beginning of the script:&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;Perhaps change cron to redirect the output to a file so you can see this verbose output.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 23 Apr 2006 01:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776145#M262267</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-04-23T01:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: At command error rc=127</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776146#M262268</link>
      <description>Hi Dewa,&lt;BR /&gt;&lt;BR /&gt;As Steven already mentioned, redirect the output to a logfile.&lt;BR /&gt;&lt;BR /&gt;The error message means:&lt;BR /&gt;rc=127 is saying that you are trying to use the non-shell commands.&lt;BR /&gt;&lt;BR /&gt;Are you sourcing scripts/commands from the test.sh script.&lt;BR /&gt;Also check if your PATH variables are correct if you are using commands whitout specifying the full-path.&lt;BR /&gt;&lt;BR /&gt;GoodLuck&lt;BR /&gt;&lt;BR /&gt;Darrel Louis</description>
      <pubDate>Sun, 23 Apr 2006 04:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776146#M262268</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2006-04-23T04:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: At command error rc=127</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776147#M262269</link>
      <description>I had this recently. Had me stumped for at least 10 minutes.....&lt;BR /&gt;&lt;BR /&gt;Someone had added a cron entry with the wrong number of parameters....&lt;BR /&gt;&lt;BR /&gt;00 23 * * * 0-6 &lt;WHATEVER command="" it="" was=""&gt;&lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;&lt;BR /&gt;00 23 * * * &lt;WHATEVER command="" it="" was=""&gt;&lt;BR /&gt;&lt;BR /&gt;So, double check your man page and make sure you have the correct number of parameters!&lt;BR /&gt;&lt;BR /&gt;If it isn't that, on your cron command line just redirect the script output to a log file . Check the contents of the log file and it may indicate your problem.&lt;BR /&gt;&lt;BR /&gt;Col&lt;/WHATEVER&gt;&lt;/WHATEVER&gt;</description>
      <pubDate>Sun, 23 Apr 2006 18:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-error-rc-127/m-p/3776147#M262269</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2006-04-23T18:07:10Z</dc:date>
    </item>
  </channel>
</rss>

