View previous topic :: View next topic |
Author |
Message |
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Sun Apr 09, 2006 3:55 pm Post subject: [SOLVED] cron job (emerge --sync) does not work |
|
|
I have set up cron to sync portage every day.
I smmes to be soing it... and fails... ? I tried to update world after this job and nothing. then synnced manually and update world comes with packages to update.
Code: | Apr 9 17:30:01 genio cron[32214]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Apr 9 17:30:01 genio cron[32216]: (root) CMD (/usr/bin/emerge --sync)
Apr 9 17:30:41 genio sSMTP[32228]: Unable to locate mail
Apr 9 17:30:41 genio sSMTP[32228]: Cannot open mail:25 |
How do I check what's wrong? _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light
Last edited by peka on Sun Apr 09, 2006 8:50 pm; edited 1 time in total |
|
Back to top |
|
|
zsoltika l33t
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Sun Apr 09, 2006 3:59 pm Post subject: |
|
|
Emerge 'mailx' or nail or something like that. Or set up your crontab to not send any mail. HTH _________________ Do not believe that Guru thing under my nickname. |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Sun Apr 09, 2006 5:20 pm Post subject: |
|
|
That's not the problem.
I think it wants to mail root because some problem ocured with completeing the job.
I want to see what the problem was. _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
zsoltika l33t
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Sun Apr 09, 2006 5:29 pm Post subject: |
|
|
Try to issue mail from the command line.
The 'unable to locate mail' could shows it has something to do with the mail command.
You can also check your messages & mail logs.
And you can always do something like Code: | emerge --sync --nospinner --nocolor >> /path/to/some/logifle |
in your crontab.
HTH _________________ Do not believe that Guru thing under my nickname. |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Sun Apr 09, 2006 5:37 pm Post subject: |
|
|
The listing I have shown in my first post is from /var/log/messages.
The problem I have is I don't know why cron-scheduled emerge --sync fails. _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
zsoltika l33t
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Sun Apr 09, 2006 5:47 pm Post subject: |
|
|
Then try to redirect it's output into some logfile as I mentioned in my previous post. _________________ Do not believe that Guru thing under my nickname. |
|
Back to top |
|
|
|