1 |
On Monday 15 September 2008, CARON Hugo wrote: |
2 |
|
3 |
[snipped some top posting ...] |
4 |
|
5 |
> On Tue, Sep 16, 2008 at 12:16:02AM +0530, Kaushal Shriyan wrote: |
6 |
> > Hi |
7 |
> > I have added 30 16 * * * /usr/local/bin/GATEWAY/gatewaySMS.sh in roots |
8 |
> > crontab. It does not gets executed by cron, |
9 |
> > where can i look for cron logs or errors on this host |
10 |
|
11 |
You should be able to see cron errors popping up in /var/log/messages. More |
12 |
detailed errors could be captured in a specific log for this cron job, if you |
13 |
append something like this to your line: |
14 |
|
15 |
30 16 * * * /usr/local/bin/GATEWAY/gatewaySMS.sh \ |
16 |
--logging /var/log/gatewaySMS.log (all on the same line) |
17 |
|
18 |
> > when i run the script by hand it works fine, only thing it needs |
19 |
> > file mailbody.txt which is located under /usr/local/bin/GATEWAY/ |
20 |
|
21 |
Check for access rights of that directory/file by the user that your |
22 |
gatewaySMS.sh script is run as and also check that your user is a member of |
23 |
the cron group. |
24 |
|
25 |
PS. You may have to create the /var/log/gatewaySMS.log by hand (use touch as |
26 |
root) and you would also need to add something in logrotate if you use this |
27 |
to manage the rotation of your log files. |
28 |
-- |
29 |
Regards, |
30 |
Mick |