<?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 crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344301#M874871</link>
    <description>Do anyone know if the crontab can only start a foreground job?&lt;BR /&gt;What I mean is that I have a shell script which has one foreground job and one background job. &lt;BR /&gt;It works well if I start it from the command line. &lt;BR /&gt;But the background job doesn't work if it is started by crontab. &lt;BR /&gt;Do anyone have any ideas?&lt;BR /&gt;&lt;BR /&gt;Please reply me asap. Thanks.</description>
    <pubDate>Thu, 29 Jul 2004 04:22:32 GMT</pubDate>
    <dc:creator>xiandao</dc:creator>
    <dc:date>2004-07-29T04:22:32Z</dc:date>
    <item>
      <title>crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344301#M874871</link>
      <description>Do anyone know if the crontab can only start a foreground job?&lt;BR /&gt;What I mean is that I have a shell script which has one foreground job and one background job. &lt;BR /&gt;It works well if I start it from the command line. &lt;BR /&gt;But the background job doesn't work if it is started by crontab. &lt;BR /&gt;Do anyone have any ideas?&lt;BR /&gt;&lt;BR /&gt;Please reply me asap. Thanks.</description>
      <pubDate>Thu, 29 Jul 2004 04:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344301#M874871</guid>
      <dc:creator>xiandao</dc:creator>
      <dc:date>2004-07-29T04:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344302#M874872</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cron has another environment than the command line&lt;BR /&gt;&lt;BR /&gt;You probably need to give full names for all commands and export all values&lt;BR /&gt;&lt;BR /&gt;If it runs as a specific setup then add&lt;BR /&gt;&lt;BR /&gt;. /home/user/.profile&lt;BR /&gt;&lt;BR /&gt;To the script to run the profile in the same processing level&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel</description>
      <pubDate>Thu, 29 Jul 2004 04:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344302#M874872</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-29T04:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344303#M874873</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Pls do not forget *always* start your script with the desired shell, i.e:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;your_procedure_line1&lt;BR /&gt;your_procedure_line2&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;Also do not forget uses the full path assignment for each command. To locate a full command path use:&lt;BR /&gt;#whence &lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;/COMMAND&gt;</description>
      <pubDate>Thu, 29 Jul 2004 04:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344303#M874873</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2004-07-29T04:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344304#M874874</link>
      <description>there are only "background" jobs started in crontab there is no reason to put &amp;amp; after the command they all are started as "background". You have to specify full path to start processes. &lt;BR /&gt;You have to specify PATH. include .profile is the easiest way to do that.&lt;BR /&gt;And is good to specify output of scripts if it exists. Otherwise the output is directed to mail of user(owner).</description>
      <pubDate>Thu, 29 Jul 2004 04:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344304#M874874</guid>
      <dc:creator>Petr Simik_1</dc:creator>
      <dc:date>2004-07-29T04:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344305#M874875</link>
      <description>hi,&lt;BR /&gt;in my opinion it is not needed to run jobs on background via cron. &lt;BR /&gt;Normally it is used only if you have only one tty and want to have access on the tty and run some jobs simultaneously.&lt;BR /&gt;&lt;BR /&gt;I suggest only redirect STDOUT &amp;amp; STDERR into logfile&lt;BR /&gt;&lt;BR /&gt;23 59 * * * /job.sh &amp;gt; /tmp/job.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;hope tih will help you&lt;BR /&gt;&lt;BR /&gt;br Jan</description>
      <pubDate>Thu, 29 Jul 2004 04:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344305#M874875</guid>
      <dc:creator>Jan Sladky</dc:creator>
      <dc:date>2004-07-29T04:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344306#M874876</link>
      <description>cron does not run foreground jobs, only jobs in the background. You'll have to provide part of your script for us to help.</description>
      <pubDate>Thu, 29 Jul 2004 04:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/3344306#M874876</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-07-29T04:53:53Z</dc:date>
    </item>
  </channel>
</rss>

