Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] cron job (emerge --sync) does not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
peka
l33t
l33t


Joined: 16 Mar 2005
Posts: 773
Location: Płońsk, Poland

PostPosted: Sun Apr 09, 2006 3:55 pm    Post subject: [SOLVED] cron job (emerge --sync) does not work Reply with quote

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
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Sun Apr 09, 2006 3:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
peka
l33t
l33t


Joined: 16 Mar 2005
Posts: 773
Location: Płońsk, Poland

PostPosted: Sun Apr 09, 2006 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Sun Apr 09, 2006 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
peka
l33t
l33t


Joined: 16 Mar 2005
Posts: 773
Location: Płońsk, Poland

PostPosted: Sun Apr 09, 2006 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Sun Apr 09, 2006 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum