<?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: Crontab Help! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047272#M135697</link>
    <description>Another check: is cron properly running? There were server without a patch that didnt allow for more that 100 cronjob, because of a problem in releasing the shells.&lt;BR /&gt;&lt;BR /&gt;Cron had to be closed and reopened.&lt;BR /&gt;&lt;BR /&gt;But bby far the most probable cause is the lack of a proper environtment.&lt;BR /&gt;su - &lt;USER who="" has="" to="" run="" the="" script=""&gt;&lt;/USER&gt;env &amp;gt;&amp;gt; file1&lt;BR /&gt;cat /rims/site1/prod1/posftp.sh  &amp;gt;&amp;gt; file1&lt;BR /&gt;mv file1 /rims/site1/prod1/posftp.sh&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
    <pubDate>Wed, 13 Aug 2003 11:08:21 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-08-13T11:08:21Z</dc:date>
    <item>
      <title>Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047263#M135688</link>
      <description>I have a script that I need to have run each night. During its process this script calls another script. I have put the following line into the crontab, but the script did not run last night:&lt;BR /&gt;&lt;BR /&gt;01 21 * * 1-5 /rims/site1/prod1/posftp.sh&lt;BR /&gt;&lt;BR /&gt;Could anyone tell my what is wrong with this crontab entry? The scripts execute properly if started manually, but not if waiting for the crontab. The script involves an FTP process.&lt;BR /&gt;Thank you,&lt;BR /&gt;Tony</description>
      <pubDate>Tue, 12 Aug 2003 13:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047263#M135688</guid>
      <dc:creator>Tony500</dc:creator>
      <dc:date>2003-08-12T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047264#M135689</link>
      <description>cron doesn't source a profile by default. If it runs manually, but int in cron, that's the first place to look.&lt;BR /&gt;You may want to post the script to see the script calling script details.</description>
      <pubDate>Tue, 12 Aug 2003 13:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047264#M135689</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-08-12T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047265#M135690</link>
      <description>You may want to check /var/adm/cron/log. Sometimes if your environment is not setup correctly, your script will not run the same as if you were logged in directly in a shell.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Aug 2003 13:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047265#M135690</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2003-08-12T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047266#M135691</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;There are a few things you can check:&lt;BR /&gt;1) Check the mode bit of the script?  Can it be executed by the owner of the crontab?&lt;BR /&gt;&lt;BR /&gt;# ll /rims/site1/prod1/posftp.sh&lt;BR /&gt;&lt;BR /&gt;2) Check the syslog /var/adm/syslog/syslog.log to see if the script was executed at 9:01PM last night.&lt;BR /&gt;&lt;BR /&gt;3) If there was any error running the script, the crontab owner should receive email on it. &lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Tue, 12 Aug 2003 13:39:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047266#M135691</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-08-12T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047267#M135692</link>
      <description>what user is the cron job running under?&lt;BR /&gt;check:&lt;BR /&gt;/var/adm/cron/cron.allow&lt;BR /&gt;and&lt;BR /&gt;/var/adm/cron/cron.deny</description>
      <pubDate>Tue, 12 Aug 2003 13:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047267#M135692</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-08-12T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047268#M135693</link>
      <description>Almost certainly this is a problem with PATH or other needed environment variables. Cron intentionally has a very sparse environment so that generally the first few lines of any cron'ed script need to set and export PATH.&lt;BR /&gt;&lt;BR /&gt;The other thing to watch out for is that some commands expect to be running in an interactive environment (i.e. connected to a terminal) --- which cron ain't. You then have to make sure that you have handled i/o redirection properly. It is normally a bad idea to source a users .profile directly or invoke a su - user command from within cron but a plain old su user command is fine because in the latter case the .profile is not sourced. .profiles almost always have command like stty, tabs, ... which expect an interactive environment.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Aug 2003 13:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047268#M135693</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-08-12T13:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047269#M135694</link>
      <description>Tony --&lt;BR /&gt;&lt;BR /&gt;One way to troubleshoot it initially is to put another script in the path of that script and try to login as the user and run it manually.&lt;BR /&gt;&lt;BR /&gt;If the script in question is something that is okay to run during the day then simply run it by itself while logged in as the cron user and see if you get any errors.&lt;BR /&gt;&lt;BR /&gt;The above ideas as well (cron.log) , cron.allow, etc are good places to check.&lt;BR /&gt;&lt;BR /&gt;Also make sure that the commands INSIDE the script have full paths (i.e. instead of 'cat file', put in: '/sbin/cat file').&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby</description>
      <pubDate>Tue, 12 Aug 2003 14:16:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047269#M135694</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-08-12T14:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047270#M135695</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;I have read all suggestions on troubleshooting this but nobody asked how the cron job was submitted. Did you simply edit the crontab? &lt;BR /&gt;&lt;BR /&gt;Try logging in as the owner and do:&lt;BR /&gt;crontab &lt;CRONFILENAME&gt;  That is after editing the file. There is a good chance that all other cron jobs scheduled did not run as well.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mel&lt;/CRONFILENAME&gt;</description>
      <pubDate>Wed, 13 Aug 2003 10:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047270#M135695</guid>
      <dc:creator>Mel_12</dc:creator>
      <dc:date>2003-08-13T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047271#M135696</link>
      <description>Hi Tony,&lt;BR /&gt;&lt;BR /&gt;Now this might sound really dumb, but is the date on your server correct?  The crontab entry is set to run Mon thru Fri.  If the day is Sat or Sun, it wont run.&lt;BR /&gt;&lt;BR /&gt;Silly, but worth checking all the same.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Wed, 13 Aug 2003 11:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047271#M135696</guid>
      <dc:creator>Tim Adamson_1</dc:creator>
      <dc:date>2003-08-13T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab Help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047272#M135697</link>
      <description>Another check: is cron properly running? There were server without a patch that didnt allow for more that 100 cronjob, because of a problem in releasing the shells.&lt;BR /&gt;&lt;BR /&gt;Cron had to be closed and reopened.&lt;BR /&gt;&lt;BR /&gt;But bby far the most probable cause is the lack of a proper environtment.&lt;BR /&gt;su - &lt;USER who="" has="" to="" run="" the="" script=""&gt;&lt;/USER&gt;env &amp;gt;&amp;gt; file1&lt;BR /&gt;cat /rims/site1/prod1/posftp.sh  &amp;gt;&amp;gt; file1&lt;BR /&gt;mv file1 /rims/site1/prod1/posftp.sh&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Wed, 13 Aug 2003 11:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-help/m-p/3047272#M135697</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-08-13T11:08:21Z</dc:date>
    </item>
  </channel>
</rss>

