<?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 doesn't execute a new script... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765962#M73610</link>
    <description>Hi Halan,&lt;BR /&gt;&lt;BR /&gt;i think you are perhaps missing the path to your script so the shell can't find it. Try the following:&lt;BR /&gt;&lt;BR /&gt;0 * * * *   /path/to/your/script&lt;BR /&gt;&lt;BR /&gt;or you could edit your /etc/PATH file:&lt;BR /&gt;&lt;BR /&gt;vi /etc/PATH --&amp;gt; A (append at end of line)&lt;BR /&gt;&lt;BR /&gt;:/path/to/your/script/directory&lt;BR /&gt;&lt;BR /&gt;ESC&lt;BR /&gt;&lt;BR /&gt;:wq!&lt;BR /&gt;&lt;BR /&gt;after this you have to relogin to get it to work.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Wed, 17 Jul 2002 11:45:25 GMT</pubDate>
    <dc:creator>Peter Kloetgen</dc:creator>
    <dc:date>2002-07-17T11:45:25Z</dc:date>
    <item>
      <title>Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765959#M73607</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;I've been a problem with contrab.I've a crontab entry that had 4 scripts runnning fine.I needed add a new script but it's doesn't work anyway.The changes was made from crontab -e.&lt;BR /&gt;I've tested the script manualy and it works fine. &lt;BR /&gt;Some help would be very appreciated.</description>
      <pubDate>Wed, 17 Jul 2002 11:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765959#M73607</guid>
      <dc:creator>Halan Leno Borges Dias</dc:creator>
      <dc:date>2002-07-17T11:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765960#M73608</link>
      <description>We will need more information to be able to help you, &lt;BR /&gt;what is your crontab entry? &lt;BR /&gt;do you know if cron start the script and then it fail or the script is never run?&lt;BR /&gt;If the script is run it's possible that you could execute your script manually and when the script is executed in cron it will fail. The reason is that cron will not read your .profile file and all the environment variables (like PATH) won't be define. so you should make sure that you always use full path for your commands inside your script.&lt;BR /&gt;&lt;BR /&gt;Luc</description>
      <pubDate>Wed, 17 Jul 2002 11:42:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765960#M73608</guid>
      <dc:creator>Luc Bussieres_1</dc:creator>
      <dc:date>2002-07-17T11:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765961#M73609</link>
      <description>Is the user this script runs as in the cron.allow file ?</description>
      <pubDate>Wed, 17 Jul 2002 11:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765961#M73609</guid>
      <dc:creator>Pete Devlin</dc:creator>
      <dc:date>2002-07-17T11:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765962#M73610</link>
      <description>Hi Halan,&lt;BR /&gt;&lt;BR /&gt;i think you are perhaps missing the path to your script so the shell can't find it. Try the following:&lt;BR /&gt;&lt;BR /&gt;0 * * * *   /path/to/your/script&lt;BR /&gt;&lt;BR /&gt;or you could edit your /etc/PATH file:&lt;BR /&gt;&lt;BR /&gt;vi /etc/PATH --&amp;gt; A (append at end of line)&lt;BR /&gt;&lt;BR /&gt;:/path/to/your/script/directory&lt;BR /&gt;&lt;BR /&gt;ESC&lt;BR /&gt;&lt;BR /&gt;:wq!&lt;BR /&gt;&lt;BR /&gt;after this you have to relogin to get it to work.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 17 Jul 2002 11:45:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765962#M73610</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-07-17T11:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765963#M73611</link>
      <description>Hi Halan,&lt;BR /&gt;you can look at /var/adm/cron/log to see if the script is executed. But i agree with Luc that it must be a problem with the env variables, like PATH, SHELL...You migth set them at the begining of the script.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Juan</description>
      <pubDate>Wed, 17 Jul 2002 11:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765963#M73611</guid>
      <dc:creator>Juan González</dc:creator>
      <dc:date>2002-07-17T11:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765964#M73612</link>
      <description>Halan&lt;BR /&gt;&lt;BR /&gt;ensure at the end of your new entry you have 2&amp;gt;&amp;amp;1 to redirect stderr and stdout&lt;BR /&gt;&lt;BR /&gt;Also, you generally shouldn't need to stop and start cron because of the way you have added your entry via crontab -e. Give it a go and reset cron&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;Check the permissions on your new script with regard to the cron user if not root&lt;BR /&gt;&lt;BR /&gt;Please post the crontab file&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 11:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765964#M73612</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-07-17T11:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765965#M73613</link>
      <description>Hi,&lt;BR /&gt;   is you cron daemon running? If yes, there shold be messages about the execution of the scripts in /var/adm/cron/log&lt;BR /&gt;Any clues there?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;John K. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 11:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765965#M73613</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2002-07-17T11:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765966#M73614</link>
      <description>Hi again, Halan,&lt;BR /&gt;&lt;BR /&gt;the standard output and standard error for cron is the mail account of the user which run the cron job. Perhaps your script *has* been executed but you do not see the results/output?&lt;BR /&gt;Look into your mail account to verify this.&lt;BR /&gt;&lt;BR /&gt;you have to redirect the output of your script if you want to see it:&lt;BR /&gt;&lt;BR /&gt;0 * * * * /path/to/script 1&amp;gt;/dev/pts/0 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; would redirect your scripts output to a terminal, also error message is redirected there.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 17 Jul 2002 11:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765966#M73614</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-07-17T11:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765967#M73615</link>
      <description>People please, see the attached file called sybase.Sybase is the user who execute the crontab.I??ve to tell you that the others scripts in this contrab run fine without any problem.I've checked the evn and path everything seem be work perfectly also I checked the /var/adm/cron/log and saw some entry about the script: /data2/batch/updt_iq.sh but it doesn't run...&lt;BR /&gt;&lt;BR /&gt;Regards !&lt;BR /&gt;&lt;BR /&gt;Halan Leno&lt;BR /&gt;Brazil - Sao Paulo</description>
      <pubDate>Wed, 17 Jul 2002 12:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765967#M73615</guid>
      <dc:creator>Halan Leno Borges Dias</dc:creator>
      <dc:date>2002-07-17T12:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765968#M73616</link>
      <description>Hi Halan,&lt;BR /&gt;&lt;BR /&gt;the entry in your cronfile seems to be ok. Did you have a look to the mail account of the user sybase? Can you please post your script here to find out if the error is in script code? Perhaps the script needs some parameters which are used inside it?&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 17 Jul 2002 13:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765968#M73616</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-07-17T13:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765969#M73617</link>
      <description>The user that the cron runs for should get an email showing the standard output.&lt;BR /&gt;You may need to change the crontab entry to this...&lt;BR /&gt;0 2 * * 2-5 /data2/batch/updt_iq.sh &amp;gt;/tmp/updt_iq.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Then you can look at the log file for clues about what is happening.&lt;BR /&gt;You may want to add "set -x" to the script to get more information.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 13:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765969#M73617</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-17T13:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765970#M73618</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you checked the cron log file at /var/adm/cron/log . Check and see if the script is executed and also make sure the execute permissions are set for the script.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 13:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765970#M73618</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-07-17T13:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765971#M73619</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;give full path of ur script in the crontab.&lt;BR /&gt;if it is link file then use&lt;BR /&gt;sh before the file path&lt;BR /&gt;&lt;BR /&gt;regds</description>
      <pubDate>Wed, 17 Jul 2002 13:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765971#M73619</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2002-07-17T13:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765972#M73620</link>
      <description>The script should be set to excutable otherwise they wont run.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Wed, 17 Jul 2002 14:07:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765972#M73620</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-07-17T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765973#M73621</link>
      <description>Did you check ownership and access_rights of the script updt_iq.sh ?(Directories underneath should be oke, since the other scripts do work fine). The script should be accessible for the user sybase.&lt;BR /&gt;&lt;BR /&gt;If this is allright, go for the option of writing to a log-file mentioned by Rich Wright. Hopefully this gives you more information.&lt;BR /&gt;&lt;BR /&gt;Good luck, BB&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 15:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765973#M73621</guid>
      <dc:creator>Bart Beeren</dc:creator>
      <dc:date>2002-07-17T15:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab doesn't execute a new script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765974#M73622</link>
      <description>I looked at your attachment.  Here are 3 things to note:&lt;BR /&gt;1. What's with this??!?!?&lt;BR /&gt;0 5 18 4 4 /data2/check/check3&lt;BR /&gt;0 2 8 5 3 /data2/batch/create_dcfusao.sh&lt;BR /&gt;The format is.....&lt;BR /&gt;minute hr dayofmonth monthofyear dayofweek file&lt;BR /&gt;&lt;BR /&gt;So it you have "0 5 18 4 4 check3" you are saying to run this ONLY on 18April at 5am ONLY if it is a THURSDAY.&lt;BR /&gt;0  0minutes&lt;BR /&gt;5  5am&lt;BR /&gt;18th of month&lt;BR /&gt;4  April&lt;BR /&gt;4  Thursday (0=sunday -&amp;gt; 6=saturday)&lt;BR /&gt;&lt;BR /&gt;2.  When running the cronjobs, you need to source in your environment.  I.E. things like $SYBASE, and $SYBASE_ASE.  &lt;BR /&gt;I got burned once this way.&lt;BR /&gt;&lt;BR /&gt;3.  I don't use "crontab -e".  Instead I....&lt;BR /&gt;   a.   crontab -l  &amp;gt; myfile&lt;BR /&gt;   b.   cp myfile   crontab.previous&lt;BR /&gt;   c.   vi  myfile&lt;BR /&gt;   d.   cp myfile crontab.new&lt;BR /&gt;   e.   crontab  crontab.new&lt;BR /&gt;Why?  Because you risk losing your crontab file.&lt;BR /&gt;I got burned once this way...too.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.  STeve&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 19:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-doesn-t-execute-a-new-script/m-p/2765974#M73622</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2002-07-17T19:54:12Z</dc:date>
    </item>
  </channel>
</rss>

