View previous topic :: View next topic |
Author |
Message |
videanuadrian n00b
Joined: 25 May 2010 Posts: 3 Location: Romania, Bucharest
|
Posted: Tue May 25, 2010 5:05 am Post subject: cron job timout |
|
|
hi all, ia have a problem when running a backup script written in bash from crontab. If the script is started manually (from console) everything is ok, but when i run it from crontab i think i got a timeot. all that i find in logs are these 3 lines:
May 2 04:00:05 MySql1 sSMTP[9179]: Sent mail for root@XXX (221 2.0.0 Bye) uid=0 username=root outbytes=545
May 2 04:05:05 MySql1 sSMTP[9165]: killed: timeout on stdin while reading body -- message saved to dead.letter.
May 2 04:05:05 MySql1 sSMTP[9165]: Timeout on stdin while reading body
I see that this messages is issued by ssmtp but from that script i did not try to send email or something....
how can i set this to work as if i run the script from console ?
thank you. |
|
Back to top |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Tue May 25, 2010 2:57 pm Post subject: |
|
|
i think you have to comment out the "mail to"-line in /etc/crontab so cron won't send mails; eg.
in /etc/crontab _________________ DUMM KLICKT GUT. |
|
Back to top |
|
|
videanuadrian n00b
Joined: 25 May 2010 Posts: 3 Location: Romania, Bucharest
|
Posted: Tue May 25, 2010 6:48 pm Post subject: |
|
|
# Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#MAILTO=root
HOME=/
this was already commented. |
|
Back to top |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Wed May 26, 2010 8:21 am Post subject: |
|
|
sorry, i think it maybe
instead. _________________ DUMM KLICKT GUT. |
|
Back to top |
|
|
|