public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] cron
@ 2008-09-15 18:46 Kaushal Shriyan
  2008-09-15 19:19 ` CARON Hugo
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Shriyan @ 2008-09-15 18:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Hi
I have added 30 16 * * * /usr/local/bin/GATEWAY/gatewaySMS.sh in roots
crontab. It does not gets executed by cron,
where can i look for cron logs or errors on this host

when i run the script by hand it works fine, only thing it needs
file mailbody.txt which is located under /usr/local/bin/GATEWAY/

Any ideas

Thanks and Regards

Kaushal

[-- Attachment #2: Type: text/html, Size: 512 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] cron
  2008-09-15 18:46 [gentoo-user] cron Kaushal Shriyan
@ 2008-09-15 19:19 ` CARON Hugo
  2008-09-18 18:11   ` Mick
  0 siblings, 1 reply; 3+ messages in thread
From: CARON Hugo @ 2008-09-15 19:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

Hi,
you use crontab -e?
What cron deamon you use and is start?
For log if you use syslog-ng with default conf use /var/log/messages

This is ligne in log
Sep 15 21:00:01 ariel cron[19510]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )

Hugo

On Tue, Sep 16, 2008 at 12:16:02AM +0530, Kaushal Shriyan wrote:
> Hi
> I have added 30 16 * * * /usr/local/bin/GATEWAY/gatewaySMS.sh in roots
> crontab. It does not gets executed by cron,
> where can i look for cron logs or errors on this host
> 
> when i run the script by hand it works fine, only thing it needs
> file mailbody.txt which is located under /usr/local/bin/GATEWAY/
> 
> Any ideas
> 
> Thanks and Regards
> 
> Kaushal

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] cron
  2008-09-15 19:19 ` CARON Hugo
@ 2008-09-18 18:11   ` Mick
  0 siblings, 0 replies; 3+ messages in thread
From: Mick @ 2008-09-18 18:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

On Monday 15 September 2008, CARON Hugo wrote:

[snipped some top posting ...]

> On Tue, Sep 16, 2008 at 12:16:02AM +0530, Kaushal Shriyan wrote:
> > Hi
> > I have added 30 16 * * * /usr/local/bin/GATEWAY/gatewaySMS.sh in roots
> > crontab. It does not gets executed by cron,
> > where can i look for cron logs or errors on this host

You should be able to see cron errors popping up in /var/log/messages.  More 
detailed errors could be captured in a specific log for this cron job, if you 
append something like this to your line:

30 16 * * * /usr/local/bin/GATEWAY/gatewaySMS.sh \
--logging /var/log/gatewaySMS.log  (all on the same line)

> > when i run the script by hand it works fine, only thing it needs
> > file mailbody.txt which is located under /usr/local/bin/GATEWAY/

Check for access rights of that directory/file by the user that your 
gatewaySMS.sh script is run as and also check that your user is a member of 
the cron group.

PS.  You may have to create the /var/log/gatewaySMS.log by hand (use touch as 
root) and you would also need to add something in logrotate if you use this 
to manage the rotation of your log files.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-18 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15 18:46 [gentoo-user] cron Kaushal Shriyan
2008-09-15 19:19 ` CARON Hugo
2008-09-18 18:11   ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox