Re: Query regarding cron jobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Thanks

How long does it run? Are you sure that one isn't running so long that
cron doesn't start the next? ..

 killed the process before scheduling the next ..

Do you mean /, or /root/? Put an env statement in the script, and have
that print it to a file, then examine your paths.

from /.



Regards
Ankit




                                                                                                                                             
  From:       m.roth@xxxxxxxxx                                                                                                               
                                                                                                                                             
  To:         "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>                                                               
                                                                                                                                             
  Date:       09/29/2011 06:50 PM                                                                                                            
                                                                                                                                             
  Subject:    Re: Query regarding cron jobs                                                                                                  
                                                                                                                                             
  Sent by:    redhat-list-bounces@xxxxxxxxxx                                                                                                 
                                                                                                                                             





Ankit Mahawar wrote:
>
> The script is getting executed a few times when scheduled through cron
>
> The probability of successful execution is 6/10.

How long does it run? Are you sure that one isn't running so long that
cron doesn't start the next?
<snip>
> Are you using complete paths in your script?  Your path in an interactive
> shell and the one supplied by cron may be different.
>
>  Path is  from the root dir.

Do you mean /, or /root/? Put an env statement in the script, and have
that print it to a file, then examine your paths.
<snip>
> How can we print the entries in /etc/cron.d  through commnad line as it
> not showing any entries  crontab -l as the entry in /etc/cron.d is for
> root user .

You clearly don't understand what we're asking/telling you. I've never
used cron.d; either I set up a cron job via crontab - and you can *allow*
or disallow any user from having a crontab, or it's in /etc/cron.hourly,
/etc/cron.daily, /etc/cron.weekly, or /etc/cron.monthly.

        mark "and the pipe sign - "|", means "or""

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux