<?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: CRON JOB PROBLEM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624141#M377909</link>
    <description>i think restarting cron would work&lt;BR /&gt;&lt;BR /&gt;You may submitting the cron job incorrectly if you do so by &lt;BR /&gt;placing root's cron file directly in /var/spool/cron/crontabs. &lt;BR /&gt;Instead, you should always use the crontab command to manipulate &lt;BR /&gt;cron jobs.  Do not manually submit jobs by editing files or &lt;BR /&gt;adding files to /var/spool/cron/crontabs/. Use the crontab &lt;BR /&gt;command to do that work for you. &lt;BR /&gt;&lt;BR /&gt;Execute the following as root in order to clear up the problem: &lt;BR /&gt;&lt;BR /&gt;     1)  Normally, you would use crontab to modify an existing &lt;BR /&gt;         cron schedule, but since you previously tried to set up your &lt;BR /&gt;         cron jobs by moving a file into /var/spool/cron/crontabs, &lt;BR /&gt;         start by moving that file to a workfile: &lt;BR /&gt;         mv /var/spool/cron/crontabs/root /tmp/cronfile &lt;BR /&gt;     2)  cd /tmp &lt;BR /&gt;     3)  crontab cronfile &lt;BR /&gt;&lt;BR /&gt;If this does not resolve the problem, then try killing and restarting &lt;BR /&gt;the cron(1M) daemon. &lt;BR /&gt;&lt;BR /&gt;Please note that once you have a working cron configuration, and wish &lt;BR /&gt;to change the schedule or add/delete cron jobs, then you use crontab(1) &lt;BR /&gt;and not cp(1)/mv(1).  Please note that you must be signed on as the &lt;BR /&gt;specific user whose cron jobs you are trying to modify.   Here are some &lt;BR /&gt;typical commands to use: &lt;BR /&gt;&lt;BR /&gt;    -  To list your current set of cron jobs: &lt;BR /&gt;          crontab -l &lt;BR /&gt;&lt;BR /&gt;    -  To list your current set of cron jobs to a file named cronfile &lt;BR /&gt;       that can been modified: &lt;BR /&gt;          crontab -l &amp;gt; cronfile &lt;BR /&gt;&lt;BR /&gt;    -  To submit a crontab file to cron: &lt;BR /&gt;          crontab cronfile &lt;BR /&gt;&lt;BR /&gt;    -  To edit a previously submitted crontab file: &lt;BR /&gt;          crontab -e &lt;BR /&gt;&lt;BR /&gt;    -  To remove all cron jobs: &lt;BR /&gt;          crontab -r &lt;BR /&gt;</description>
    <pubDate>Tue, 27 Apr 2010 03:47:58 GMT</pubDate>
    <dc:creator>Raj Briden</dc:creator>
    <dc:date>2010-04-27T03:47:58Z</dc:date>
    <item>
      <title>CRON JOB PROBLEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624136#M377904</link>
      <description>Hi Experts&lt;BR /&gt;&lt;BR /&gt;I have problem in corn jobs, &lt;BR /&gt;&lt;BR /&gt;1. when i check the corn jobs by "ps -ef | grep corn" Getting Outpur such as&lt;BR /&gt;&lt;BR /&gt;BCCIB30:/ # ps -ef | grep cron&lt;BR /&gt;    root   528 28967  1 15:51:14 pts/2     0:00 grep cron&lt;BR /&gt;    root 15350     1  0 15:34:18 ?         0:00 cron start&lt;BR /&gt;&lt;BR /&gt;2.When i am starting the cron jobs by"cront start" command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am getting error like and page is hanging&lt;BR /&gt;&lt;BR /&gt;BCCIB30:/sbin/init.d # ! cron is already running Mon Apr 26 15:45:47 EDT 2010&lt;BR /&gt;! ******* CRON ABORTED ******** Mon Apr 26 15:45:47 EDT 2010&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please veryfy the following output and guid me to start the corn job&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;&lt;BR /&gt;Vinay</description>
      <pubDate>Mon, 26 Apr 2010 19:02:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624136#M377904</guid>
      <dc:creator>HP UNIX Professionals</dc:creator>
      <dc:date>2010-04-26T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: CRON JOB PROBLEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624137#M377905</link>
      <description>It looks like the cron daemon is not running correctly.&lt;BR /&gt;&lt;BR /&gt;When you do a 'ps -ef |grep cron' you should get something like this:&lt;BR /&gt;&lt;BR /&gt;# ps â  ef | grep cron&lt;BR /&gt;root  2773     1  0  Apr  8  ?         0:03 /usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try stopping and restarting cron itself:&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/cron stop&lt;BR /&gt;&lt;BR /&gt;See if the is still a 'cron start' running.  If so, kill it.&lt;BR /&gt;# ps -ef |grep cron&lt;BR /&gt;&lt;BR /&gt;Once there are no cron daemons running, try starting cron.&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;Now see what is running again.  If you see 'cron start' then something is wrong.  Check the various log files (/var/adm/syslog/syslog.log, /etc/rc.log, /var/adm/cron/log) and see if there are errors.&lt;BR /&gt;&lt;BR /&gt;If you see '/usr/bin/cron' as above then it should be OK again.</description>
      <pubDate>Mon, 26 Apr 2010 19:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624137#M377905</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-04-26T19:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: CRON JOB PROBLEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624138#M377906</link>
      <description>Shalom Vinay,&lt;BR /&gt;&lt;BR /&gt;If the problem persists, you may need to copy /sbin/init.d/cron from a HP-UX system that is working right.&lt;BR /&gt;&lt;BR /&gt;The startup script itself might be damaged.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Apr 2010 19:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624138#M377906</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-04-26T19:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: CRON JOB PROBLEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624139#M377907</link>
      <description>Hi Vinay:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; When i am starting the cron jobs by"cront start" command&lt;BR /&gt;&lt;BR /&gt;Are you actually doing:&lt;BR /&gt;&lt;BR /&gt;# cron start&lt;BR /&gt;&lt;BR /&gt;...when you mean to re-configure 'cron' to use a new 'crontab'?&lt;BR /&gt;&lt;BR /&gt;Do you thus, mean:&lt;BR /&gt;&lt;BR /&gt;# crontab file&lt;BR /&gt;&lt;BR /&gt;A better way (than 'grep'ping the process table) to find the running 'cron' daemon (if any) is:&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -C cron -opid,comm,args&lt;BR /&gt;&lt;BR /&gt;...which should yield something like:&lt;BR /&gt;&lt;BR /&gt;  PID COMMAND         COMMAND&lt;BR /&gt; 1555 cron            /usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt;...if the 'cron' daemon is running.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Apr 2010 19:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624139#M377907</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-04-26T19:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: CRON JOB PROBLEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624140#M377908</link>
      <description>I think somebody tried to start cron as&lt;BR /&gt;#cron start&lt;BR /&gt;&lt;BR /&gt;you should try to kill it and just run&lt;BR /&gt;#/usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Tue, 27 Apr 2010 02:55:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624140#M377908</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-04-27T02:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: CRON JOB PROBLEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624141#M377909</link>
      <description>i think restarting cron would work&lt;BR /&gt;&lt;BR /&gt;You may submitting the cron job incorrectly if you do so by &lt;BR /&gt;placing root's cron file directly in /var/spool/cron/crontabs. &lt;BR /&gt;Instead, you should always use the crontab command to manipulate &lt;BR /&gt;cron jobs.  Do not manually submit jobs by editing files or &lt;BR /&gt;adding files to /var/spool/cron/crontabs/. Use the crontab &lt;BR /&gt;command to do that work for you. &lt;BR /&gt;&lt;BR /&gt;Execute the following as root in order to clear up the problem: &lt;BR /&gt;&lt;BR /&gt;     1)  Normally, you would use crontab to modify an existing &lt;BR /&gt;         cron schedule, but since you previously tried to set up your &lt;BR /&gt;         cron jobs by moving a file into /var/spool/cron/crontabs, &lt;BR /&gt;         start by moving that file to a workfile: &lt;BR /&gt;         mv /var/spool/cron/crontabs/root /tmp/cronfile &lt;BR /&gt;     2)  cd /tmp &lt;BR /&gt;     3)  crontab cronfile &lt;BR /&gt;&lt;BR /&gt;If this does not resolve the problem, then try killing and restarting &lt;BR /&gt;the cron(1M) daemon. &lt;BR /&gt;&lt;BR /&gt;Please note that once you have a working cron configuration, and wish &lt;BR /&gt;to change the schedule or add/delete cron jobs, then you use crontab(1) &lt;BR /&gt;and not cp(1)/mv(1).  Please note that you must be signed on as the &lt;BR /&gt;specific user whose cron jobs you are trying to modify.   Here are some &lt;BR /&gt;typical commands to use: &lt;BR /&gt;&lt;BR /&gt;    -  To list your current set of cron jobs: &lt;BR /&gt;          crontab -l &lt;BR /&gt;&lt;BR /&gt;    -  To list your current set of cron jobs to a file named cronfile &lt;BR /&gt;       that can been modified: &lt;BR /&gt;          crontab -l &amp;gt; cronfile &lt;BR /&gt;&lt;BR /&gt;    -  To submit a crontab file to cron: &lt;BR /&gt;          crontab cronfile &lt;BR /&gt;&lt;BR /&gt;    -  To edit a previously submitted crontab file: &lt;BR /&gt;          crontab -e &lt;BR /&gt;&lt;BR /&gt;    -  To remove all cron jobs: &lt;BR /&gt;          crontab -r &lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2010 03:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-problem/m-p/4624141#M377909</guid>
      <dc:creator>Raj Briden</dc:creator>
      <dc:date>2010-04-27T03:47:58Z</dc:date>
    </item>
  </channel>
</rss>

