<?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 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667939#M50122</link>
    <description>Have you checked the cron log, to ehsure that the job is running? Log is&lt;BR /&gt;/var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;This should show the start &amp;amp; finish times of the cron job.&lt;BR /&gt;&lt;BR /&gt;John&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Feb 2002 08:05:37 GMT</pubDate>
    <dc:creator>John Strang</dc:creator>
    <dc:date>2002-02-20T08:05:37Z</dc:date>
    <item>
      <title>crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667933#M50116</link>
      <description>user pin write a shell script in /home/pin to check system ,and root do these things as following:&lt;BR /&gt;crontab -e&lt;BR /&gt;30 08 * * * "su - pin -c /home/pin/shellname"&lt;BR /&gt;&lt;BR /&gt;but cron doesnot work ,there should be some messages to inform me about the check info,but i cannot find these messages.&lt;BR /&gt;&lt;BR /&gt;from book ,i find something about cron:cron only use /usr/bin/sh surrounding and can not use your surrounding.   i can understand these words exactly,does it mean that i cannot use a shell script in crontab??</description>
      <pubDate>Wed, 20 Feb 2002 07:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667933#M50116</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-02-20T07:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667934#M50117</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try specifying the full path for su in the crontab ie. /usr/bin/su. &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Wed, 20 Feb 2002 07:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667934#M50117</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-20T07:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667935#M50118</link>
      <description>Hi Guru,&lt;BR /&gt;&lt;BR /&gt;of course you can use shellscripts with cron. Why the hell should we need cron else? First:&lt;BR /&gt;&lt;BR /&gt;the messages go to the mail account of the user who starts the cronjob. If you want messages to come to another point, you have to redirect them.&lt;BR /&gt;&lt;BR /&gt;cronjob &amp;gt;/dev/pts/0 for example&lt;BR /&gt;&lt;BR /&gt;if you write a shellscript, the first line should be:&lt;BR /&gt;&lt;BR /&gt;# !/usr/bin/desired_shell&lt;BR /&gt;&lt;BR /&gt;to show the script which shell should interpret it&lt;BR /&gt;&lt;BR /&gt;then your cron job shoul work....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 20 Feb 2002 07:57:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667935#M50118</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-20T07:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667936#M50119</link>
      <description>Change:&lt;BR /&gt;&lt;BR /&gt;30 08 * * * "su - pin -c /home/pin/shellname" &lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;30 08 * * * su - pin -c "/home/pin/shellname" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 08:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667936#M50119</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-02-20T08:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667937#M50120</link>
      <description>Maybe you can try this:&lt;BR /&gt;&lt;BR /&gt;30 08 * * * /usr/bin/su - pin -c "/home/pin/shellname"&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kenny.</description>
      <pubDate>Wed, 20 Feb 2002 08:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667937#M50120</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2002-02-20T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667938#M50121</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The fault lies with your double-quotes. I just tested. With the quotes, the whole string will be taken as a command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Wed, 20 Feb 2002 08:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667938#M50121</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-20T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667939#M50122</link>
      <description>Have you checked the cron log, to ehsure that the job is running? Log is&lt;BR /&gt;/var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;This should show the start &amp;amp; finish times of the cron job.&lt;BR /&gt;&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 08:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667939#M50122</guid>
      <dc:creator>John Strang</dc:creator>
      <dc:date>2002-02-20T08:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667940#M50123</link>
      <description>i have try all suggestiones,however it still does not work.&lt;BR /&gt;following is my date:&lt;BR /&gt;# crontab -e&lt;BR /&gt;"/var/tmp/aaaa10044" &lt;BR /&gt;45 16 * * * usr/bin/su - pin -c "/home/pin/ok"&lt;BR /&gt;&lt;BR /&gt;/var/tmp/aaaa10044" 1 line, 39 characters &lt;BR /&gt;warning: commands will be executed using /usr/bin/sh&lt;BR /&gt;# crontab -l&lt;BR /&gt;45 16 * * * usr/bin/su - pin -c "/home/pin/ok"&lt;BR /&gt;# date -u&lt;BR /&gt;Wed Feb 20 16:44:12 UTC 2002&lt;BR /&gt;# date -u&lt;BR /&gt;Wed Feb 20 16:45:20 UTC 2002&lt;BR /&gt;# cat log&lt;BR /&gt;! *** cron ????????? ***   pid = 1088 Tue Feb 19 12:10:13 EAT 2002&lt;BR /&gt;&amp;gt;  CMD: /home/pin/ok&lt;BR /&gt;&amp;gt;  root 9364 c Wed Feb 20 22:48:17 EAT 2002&lt;BR /&gt;&amp;lt;  root 9364 c Wed Feb 20 22:48:17 EAT 2002&lt;BR /&gt;&lt;BR /&gt;after 16:45,i use pin user ,but there is no mail.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 08:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667940#M50123</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-02-20T08:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667941#M50124</link>
      <description>Hi Guru,&lt;BR /&gt;&lt;BR /&gt;did you check the first line of script?&lt;BR /&gt;&lt;BR /&gt;# !/path_to_shell_to_interpret_the_script&lt;BR /&gt;&lt;BR /&gt;you do a switchuser to desired user. Do you have an entry in the cron.allow for that user?&lt;BR /&gt;A su - changes identity and also the environment to the users environment. Which shell does the user have as entry in the /etc/passwd- file?&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 20 Feb 2002 08:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667941#M50124</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-20T08:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667942#M50125</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You missed out the /.&lt;BR /&gt;&lt;BR /&gt;Change:&lt;BR /&gt;&lt;BR /&gt;45 16 * * * usr/bin/su - pin -c "/home/pin/ok" &lt;BR /&gt;&lt;BR /&gt;To:&lt;BR /&gt;&lt;BR /&gt;45 16 * * * /usr/bin/su - pin -c "/home/pin/ok"&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Wed, 20 Feb 2002 09:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667942#M50125</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-20T09:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667943#M50126</link>
      <description>look here:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tsrad 30&amp;gt; date&lt;BR /&gt;Thu Feb 21 17:10:24 EAT 2002&lt;BR /&gt;tsrad 31&amp;gt; date -u&lt;BR /&gt;Thu Feb 21 09:10:26 UTC 2002&lt;BR /&gt;&lt;BR /&gt;which time should be used in crontab?&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 01:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667943#M50126</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-02-21T01:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667944#M50127</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Do this:&lt;BR /&gt;&lt;BR /&gt;cat /etc/TIMEZONE. This will display the default system TZ setting and whatever that is, that is what you use.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 01:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667944#M50127</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-21T01:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667945#M50128</link>
      <description>&lt;BR /&gt;cat TIMEZONE&lt;BR /&gt;TZ=EAT-8&lt;BR /&gt;export TZ&lt;BR /&gt;tsrad 45&amp;gt; date&lt;BR /&gt;Thu Feb 21 17:57:42 EAT 2002&lt;BR /&gt;tsrad 46&amp;gt; date -u&lt;BR /&gt;Thu Feb 21 09:58:00 UTC 2002&lt;BR /&gt;&lt;BR /&gt;does it mean that i shoule use 09:58:00  ?</description>
      <pubDate>Thu, 21 Feb 2002 01:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667945#M50128</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-02-21T01:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: crontab question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667946#M50129</link>
      <description>Since you're only testing it out, why not set the job to run every 5 minutes? That way you dont have to worry about your TZ setting.&lt;BR /&gt;05 * * * * /usr/bin/su - pin -c "/home/pin/ok" &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 03:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-question/m-p/2667946#M50129</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-21T03:13:51Z</dc:date>
    </item>
  </channel>
</rss>

