<?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 error message in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276340#M334918</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Any output (STDERR or STDOUT) from a 'cron' task that isn't redirected is mailed to the initiating user account when a task is run by the 'cron' daemon.&lt;BR /&gt;&lt;BR /&gt;You can do:&lt;BR /&gt;&lt;BR /&gt;* * * * * /batchrun/shiprpt/shiprpt.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;...which would "bit-bucket" all STDOUT and STDERR and thus eliminate the mail you received.  &lt;BR /&gt;&lt;BR /&gt;The message you posted at the top "Redirection or piping of stdin or stdout is allowed only with -b" is interesting.  Is this HP-UX using its 'cron' ?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 25 Sep 2008 18:17:18 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-09-25T18:17:18Z</dc:date>
    <item>
      <title>Cron error message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276338#M334916</link>
      <description>Subject: cron&lt;BR /&gt;&lt;BR /&gt;Redirection or piping of stdin or stdout is allowed only with -b. (156)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*********************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/batchrun/shiprpt/shiprpt.sh&lt;BR /&gt;********************************************&lt;BR /&gt;&lt;BR /&gt;But I can run '/batchrun/shiprpt/shiprpt.sh' manually.&lt;BR /&gt;&lt;BR /&gt;Please help, Thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 18:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276338#M334916</guid>
      <dc:creator>ninozhou</dc:creator>
      <dc:date>2008-09-25T18:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cron error message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276339#M334917</link>
      <description>Please post your cron entry&lt;BR /&gt;&lt;BR /&gt;Please post your version of HPUX&lt;BR /&gt;&lt;BR /&gt;99% of the issue with cron are:&lt;BR /&gt;&lt;BR /&gt;cron jobs do NOT include a standard environment, so the script working manually only says your interactive environment is OK.  It does not prove that the environment while executing your script via cron is ok.&lt;BR /&gt;&lt;BR /&gt;Include all needed environment vars in your script.  I do not directly know nor have ever seen "Redirection or piping of stdin or stdout is allowed only with -b. (156)" so I do not know if the error is from cron itself ( don't think so ) or from some unknown command in your script. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 18:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276339#M334917</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-09-25T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cron error message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276340#M334918</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Any output (STDERR or STDOUT) from a 'cron' task that isn't redirected is mailed to the initiating user account when a task is run by the 'cron' daemon.&lt;BR /&gt;&lt;BR /&gt;You can do:&lt;BR /&gt;&lt;BR /&gt;* * * * * /batchrun/shiprpt/shiprpt.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;...which would "bit-bucket" all STDOUT and STDERR and thus eliminate the mail you received.  &lt;BR /&gt;&lt;BR /&gt;The message you posted at the top "Redirection or piping of stdin or stdout is allowed only with -b" is interesting.  Is this HP-UX using its 'cron' ?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 25 Sep 2008 18:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-error-message/m-p/4276340#M334918</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-25T18:17:18Z</dc:date>
    </item>
  </channel>
</rss>

