I have a file created in /etc/cron.d which has an entry which execute a
command at the time interval specified .
But due to some reason it is not getting executed and the entry is still
there .
I have checked the cron daemon is running
Could you please tell the scenario in which this can happen ?
Also ,
What is the difference between entries in /etc/cron.d and /etc/crontab
file .
Regards
Ankit ,
=====-----=====-----=====
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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 06:48 AM
Barry Brimer
Query regarding cron jobs
Hi ,
I have a file created in /etc/cron.d which has an entry which execute a
command at the time interval specified .
But due to some reason it is not getting executed and the entry is still
there .
I would expect it to be there unless you removed it. Failure to run
would not cause it to disappear. What does the cron entry look like?
I have checked the cron daemon is running
Could you please tell the scenario in which this can happen ?
What do you see in /var/log/cron ?
What are the perms of the script / program you are calling?
Are you using complete paths in your script? Your path in an interactive
shell and the one supplied by cron may be different.
Is SELinux enabled?
Can you run this script by hand with success?
What is the difference between entries in /etc/cron.d and /etc/crontab
file .
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
Barry
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 07:16 AM
Ankit Mahawar
Query regarding cron jobs
Hi ,
Thanks Barry for your inputs ..
The script is getting executed a few times when scheduled through cron
The probability of successful execution is 6/10.
Is SELinux enabled?
SElinux is disabled in my system ..
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.
> What is the difference between entries in /etc/cron.d and /etc/crontab
> file .
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
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 .
Thanks
Ankit
From: Barry Brimer <lists@brimer.org>
To: General Red Hat Linux discussion list <redhat-list@redhat.com>
Date: 09/29/2011 12:25 PM
Subject: Re: Query regarding cron jobs
Sent by: redhat-list-bounces@redhat.com
> Hi ,
>
> I have a file created in /etc/cron.d which has an entry which execute a
> command at the time interval specified .
>
> But due to some reason it is not getting executed and the entry is still
> there .
I would expect it to be there unless you removed it. Failure to run
would not cause it to disappear. What does the cron entry look like?
> I have checked the cron daemon is running
>
> Could you please tell the scenario in which this can happen ?
What do you see in /var/log/cron ?
What are the perms of the script / program you are calling?
Are you using complete paths in your script? Your path in an interactive
shell and the one supplied by cron may be different.
Is SELinux enabled?
Can you run this script by hand with success?
> What is the difference between entries in /etc/cron.d and /etc/crontab
> file .
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
Barry
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 11:57 AM
mark
Query regarding cron jobs
Ankit Mahawar wrote:
I have a file created in /etc/cron.d which has an entry which execute a
command at the time interval specified .
But due to some reason it is not getting executed and the entry is still
there .
Put it in /etc/cron.[hourly|daily|weekly|monthly]
What is the difference between entries in /etc/cron.d and /etc/crontab
file .
crontab can be more flexible, and you can decide exactly when it runs.
mark
Regards
Ankit ,
=====-----=====-----=====
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
--
"This country has medicalized social problems. Instead of being
concerned about widescale unemployment, underemployment, and job
outsourcing, people act as if the problem were nothing more than the
victims being depressed, as if depression always took place in a
vacuum." - M. DuPree
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 12:18 PM
Ankit Mahawar
Query regarding cron jobs
Hi Mark
Thanks for inputs ...
The script is getting executed a few times when scheduled through cron
The probability of successful execution is 6/10.
Is SELinux enabled?
SElinux is disabled in my system ..
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.
> What is the difference between entries in /etc/cron.d and /etc/crontab
> file .
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
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 .
Thanks
Ankit
From: Ankit Mahawar/MUM/TCS
To: General Red Hat Linux discussion list <redhat-list@redhat.com>
Date: 09/29/2011 12:46 PM
Subject: Re: Query regarding cron jobs
Sent by: Ankit Mahawar
Hi ,
Thanks Barry for your inputs ..
The script is getting executed a few times when scheduled through cron
The probability of successful execution is 6/10.
Is SELinux enabled?
SElinux is disabled in my system ..
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.
> What is the difference between entries in /etc/cron.d and /etc/crontab
> file .
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
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 .
Thanks
Ankit
From: Barry Brimer <lists@brimer.org>
To: General Red Hat Linux discussion list <redhat-list@redhat.com>
Date: 09/29/2011 12:25 PM
Subject: Re: Query regarding cron jobs
Sent by: redhat-list-bounces@redhat.com
> Hi ,
>
> I have a file created in /etc/cron.d which has an entry which execute a
> command at the time interval specified .
>
> But due to some reason it is not getting executed and the entry is still
> there .
I would expect it to be there unless you removed it. Failure to run
would not cause it to disappear. What does the cron entry look like?
> I have checked the cron daemon is running
>
> Could you please tell the scenario in which this can happen ?
What do you see in /var/log/cron ?
What are the perms of the script / program you are calling?
Are you using complete paths in your script? Your path in an interactive
shell and the one supplied by cron may be different.
Is SELinux enabled?
Can you run this script by hand with success?
> What is the difference between entries in /etc/cron.d and /etc/crontab
> file .
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
Barry
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 12:27 PM
Jonathan S Billings
Query regarding cron jobs
On 09/29/2011 03:16 AM, Ankit Mahawar wrote:
It is easy for a package to add/remove a file from /etc/cron.d .. a little
harder to edit /etc/crontab
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 .
The entries in /etc/cron.d should look very similar to what you see in
/etc/crontab -- basically, everything in /etc/cron.d/ are just
additional fragments of a greater crontab that includes /etc/crontab and
every file in /etc/cron.d/. If you just 'cat /etc/crontab
/etc/cron.d/*' you'll see all the non-user crontab entries.
I'll note that running 'crontab -l' as root *DOES NOT* show the entries
in /etc/crontab, but rather the entries in /var/spool/cron/root. The
syntax for the root crontab differs from the /etc/crontab and
/etc/cron.d/* entries. In the user crontabs, you don't need to list the
user in the sixth column, since that is implied. That user is required
in the system-wide crontab files.
--
Jonathan Billings <jsbillin@umich.edu>
College of Engineering - CAEN - Unix and Linux Support
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 01:13 PM
Query regarding cron jobs
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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 01:35 PM
Ankit Mahawar
Query regarding cron jobs
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@5-cent.us
To: "General Red Hat Linux discussion list" <redhat-list@redhat.com>
Date: 09/29/2011 06:50 PM
Subject: Re: Query regarding cron jobs
Sent by: redhat-list-bounces@redhat.com
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@redhat.com?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@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
09-29-2011, 01:45 PM
Query regarding cron jobs
Ankit,
First, please configure whatever you use for mail to deal with plain
text, not HTML, and tell it to use defaults, such as prefixing each
line that you are replying to with a ">". Your replies are very
unclear.
Second, man cron, crontab(1), crontab(5)
mark
Ankit Mahawar wrote:
> 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@5-cent.us
>
> To: "General Red Hat Linux discussion list"
> <redhat-list@redhat.com>
>
> Date: 09/29/2011 06:50 PM
>
> Subject: Re: Query regarding cron jobs
>
> Sent by: redhat-list-bounces@redhat.com
>
>
>
>
>
>
> 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@redhat.com?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@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list