<?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 problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231231#M468486</link>
    <description>&lt;!--!*#--&gt;&amp;gt; [...] does not seem to work.&lt;BR /&gt;&lt;BR /&gt;What, exactly, does that mean?  No&lt;BR /&gt;"/tmp/sample1" file created, or what?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] correct?&lt;BR /&gt;&lt;BR /&gt;Looks ok to me (which does not prove much).&lt;BR /&gt;&lt;BR /&gt;      ls -l /tmp/test&lt;BR /&gt;&lt;BR /&gt;This works interactively?:&lt;BR /&gt;&lt;BR /&gt;      /tmp/test&lt;BR /&gt;&lt;BR /&gt;"/tmp" is not where I'd put a script which I&lt;BR /&gt;intended to run every day.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Around here:&lt;BR /&gt;&lt;BR /&gt;dyi # date ; ls -l /tmp/samp*&lt;BR /&gt;Fri Mar 19 17:56:12 CDT 2010&lt;BR /&gt;-rwxr-xr-x   1 sms        users           65 Mar 19 17:54 /tmp/sample&lt;BR /&gt;-rw-r--r--   1 sms        users           11 Mar 19 17:56 /tmp/sample1&lt;BR /&gt;&lt;BR /&gt;dyi $ crontab -l&lt;BR /&gt;56 17 * * * /tmp/sample&lt;BR /&gt;&lt;BR /&gt;dyi $ cat /tmp/sample&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#This is a sample&lt;BR /&gt;echo " Sample 01" &amp;gt; /tmp/sample1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dyi $ uname -a&lt;BR /&gt;HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Is your OS a secret?</description>
    <pubDate>Fri, 19 Mar 2010 22:01:14 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-03-19T22:01:14Z</dc:date>
    <item>
      <title>Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231230#M468485</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I trying to include a script in my crontab as user. I used "crontab -e" to include my script there but does not seem to work.&lt;BR /&gt;&lt;BR /&gt;15 08 * * * /tmp/test&lt;BR /&gt;&lt;BR /&gt;If I understand correctly it is set to run at 08:15 every day, correct?&lt;BR /&gt;&lt;BR /&gt;Can anybody identify any error?</description>
      <pubDate>Fri, 19 Mar 2010 21:14:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231230#M468485</guid>
      <dc:creator>Damián Sarmiento</dc:creator>
      <dc:date>2010-03-19T21:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231231#M468486</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] does not seem to work.&lt;BR /&gt;&lt;BR /&gt;What, exactly, does that mean?  No&lt;BR /&gt;"/tmp/sample1" file created, or what?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] correct?&lt;BR /&gt;&lt;BR /&gt;Looks ok to me (which does not prove much).&lt;BR /&gt;&lt;BR /&gt;      ls -l /tmp/test&lt;BR /&gt;&lt;BR /&gt;This works interactively?:&lt;BR /&gt;&lt;BR /&gt;      /tmp/test&lt;BR /&gt;&lt;BR /&gt;"/tmp" is not where I'd put a script which I&lt;BR /&gt;intended to run every day.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Around here:&lt;BR /&gt;&lt;BR /&gt;dyi # date ; ls -l /tmp/samp*&lt;BR /&gt;Fri Mar 19 17:56:12 CDT 2010&lt;BR /&gt;-rwxr-xr-x   1 sms        users           65 Mar 19 17:54 /tmp/sample&lt;BR /&gt;-rw-r--r--   1 sms        users           11 Mar 19 17:56 /tmp/sample1&lt;BR /&gt;&lt;BR /&gt;dyi $ crontab -l&lt;BR /&gt;56 17 * * * /tmp/sample&lt;BR /&gt;&lt;BR /&gt;dyi $ cat /tmp/sample&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#This is a sample&lt;BR /&gt;echo " Sample 01" &amp;gt; /tmp/sample1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dyi $ uname -a&lt;BR /&gt;HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Is your OS a secret?</description>
      <pubDate>Fri, 19 Mar 2010 22:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231231#M468486</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-03-19T22:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231232#M468487</link>
      <description>Hi there.&lt;BR /&gt;&lt;BR /&gt;# uname -a&lt;BR /&gt;HP-UX pruebas B.11.31 U ia64 3246142436 unlimited-user license&lt;BR /&gt;# ps -ef | grep cron&lt;BR /&gt;    root  1777     1  0  Feb 18  ?         1:58 /usr/sbin/cron&lt;BR /&gt;# date&lt;BR /&gt;Fri Mar 19 17:14:03 MXST 2010&lt;BR /&gt;# crontab -l&lt;BR /&gt;15 17 * * * /tmp/test&lt;BR /&gt;$ date&lt;BR /&gt;Fri Mar 19 17:15:10 MXST 2010&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# pwd&lt;BR /&gt;/tmp&lt;BR /&gt;# ll sample*&lt;BR /&gt;sample* not found&lt;BR /&gt;&lt;BR /&gt;As you can see the cron is running but it does not execute the script.&lt;BR /&gt;&lt;BR /&gt;Any suggestion?&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 19 Mar 2010 22:22:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231232#M468487</guid>
      <dc:creator>Damián Sarmiento</dc:creator>
      <dc:date>2010-03-19T22:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231233#M468488</link>
      <description>Damian,&lt;BR /&gt;&lt;BR /&gt;You can do a test from the user you are trying to run the cron.&lt;BR /&gt;&lt;BR /&gt;- Also check if the user is permitted to use cron, in cron.allow  user entry should be there.&lt;BR /&gt;&lt;BR /&gt;Check with executing from command prompt:&lt;BR /&gt;$ ls -l /tmp/test  #Make sure it is executable. &lt;BR /&gt;&lt;BR /&gt;$ /tmp/test&lt;BR /&gt;&lt;BR /&gt;$ ls -l /tmp/sample*&lt;BR /&gt;&lt;BR /&gt;If this work , cron supposed to work at the given time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Fri, 19 Mar 2010 22:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231233#M468488</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-03-19T22:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231234#M468489</link>
      <description>&lt;!--!*#--&gt;&amp;gt; As you can see the cron is running but it&lt;BR /&gt;&amp;gt; does not execute the script.&lt;BR /&gt;&lt;BR /&gt;Can _you_ execute it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;       ls -l /tmp/test&lt;BR /&gt;&lt;BR /&gt;&amp;gt;       /tmp/test&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $ ls -l /tmp/test #Make sure it is executable.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; $ /tmp/test&lt;BR /&gt;&lt;BR /&gt;Still wondering...</description>
      <pubDate>Fri, 19 Mar 2010 22:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231234#M468489</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-03-19T22:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231235#M468490</link>
      <description>Hi Raj D.&lt;BR /&gt;&lt;BR /&gt;The script has exec. permissions&lt;BR /&gt;I executed the script and this is the out:&lt;BR /&gt;&lt;BR /&gt;$ whoami&lt;BR /&gt;dsarmien&lt;BR /&gt;$ pwd&lt;BR /&gt;/tmp&lt;BR /&gt;$ ll test&lt;BR /&gt;-rwx------   1 dsarmien   users           65 Mar 19 09:57 test&lt;BR /&gt;$ cat test&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#This is a sample&lt;BR /&gt;echo " Sample 01" &amp;gt; /tmp/sample1&lt;BR /&gt;$ ll sample1&lt;BR /&gt;sample1 not found&lt;BR /&gt;$ ./test&lt;BR /&gt;$ ll sample1&lt;BR /&gt;-rw-r--r--   1 dsarmien   users           11 Mar 19 18:05 sample1&lt;BR /&gt;$ cat sample1&lt;BR /&gt; Sample 01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The user dsarmien is permitted to use cron:&lt;BR /&gt;&lt;BR /&gt;$ cat /var/adm/cron/cron.allow&lt;BR /&gt;root&lt;BR /&gt;dsarmien&lt;BR /&gt;$ crontab -l&lt;BR /&gt;15 17 * * * /tmp/test&lt;BR /&gt;$ whoami&lt;BR /&gt;dsarmien&lt;BR /&gt;&lt;BR /&gt;Thanks for your attention.&lt;BR /&gt;&lt;BR /&gt;DASM</description>
      <pubDate>Fri, 19 Mar 2010 23:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231235#M468490</guid>
      <dc:creator>Damián Sarmiento</dc:creator>
      <dc:date>2010-03-19T23:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231236#M468491</link>
      <description>Hi Steven.&lt;BR /&gt;&lt;BR /&gt;Yes, I can execute the script.&lt;BR /&gt;&lt;BR /&gt;$ ll test&lt;BR /&gt;-rwx------ 1 dsarmien users 65 Mar 19 09:57 test&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 19 Mar 2010 23:19:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231236#M468491</guid>
      <dc:creator>Damián Sarmiento</dc:creator>
      <dc:date>2010-03-19T23:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231237#M468492</link>
      <description>Have you looked at the log?&lt;BR /&gt;/var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;Note: test is a bad name for a script since it conflicts with the shell builtin.  But since you use an absolute path, it should work for you.</description>
      <pubDate>Sat, 20 Mar 2010 10:07:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231237#M468492</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-20T10:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231238#M468493</link>
      <description>just to make sure if its working incrase the frequency for the script, and check the logs suugested by Dennis, it would tell you wheather  cron is actually running the script or now.&lt;BR /&gt;&lt;BR /&gt;you can also try &lt;BR /&gt;sh /tmp/test in cron script.&lt;BR /&gt;&lt;BR /&gt;Although urs things is right.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Sat, 20 Mar 2010 10:33:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231238#M468493</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-20T10:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231239#M468494</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I only restarted the server and after that it worked correctly.&lt;BR /&gt;It was weird because I know it was not necessary to restart in order the cron executes the script.&lt;BR /&gt;There were no incidents in the log of the cron.&lt;BR /&gt;&lt;BR /&gt;Thanks to all for answering.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 22 Mar 2010 17:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231239#M468494</guid>
      <dc:creator>Damián Sarmiento</dc:creator>
      <dc:date>2010-03-22T17:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231240#M468495</link>
      <description>Solved.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 22 Mar 2010 18:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-problem/m-p/5231240#M468495</guid>
      <dc:creator>Damián Sarmiento</dc:creator>
      <dc:date>2010-03-22T18:01:55Z</dc:date>
    </item>
  </channel>
</rss>

