Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
running emerge under cron tip
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Gushy
Apprentice
Apprentice


Joined: 03 Aug 2002
Posts: 284
Location: Reading, UK

PostPosted: Mon Mar 17, 2003 11:08 am    Post subject: running emerge under cron tip Reply with quote

ok, I know some people will think this is a bad thing to do and I should do things manually, but I'd just do all the updates anyway so it makes little diff.

I have my LAN server setup with 3 emerges in the crontab:
1. emerge sync every night
2. emerge -u system every week
3. emerge -u world twice a month

Only problem is it didn't work. :(

An email I got from cron showed this:
Quote:

Error opening terminal: unknown.
Error opening terminal: unknown.
Error opening terminal: unknown.
Calculating world dependencies ...done!
>>> emerge (1 of 19) net-libs/libpcap-0.7.1-r1 to /
>>> Downloading http://gentoo.oregonstate.edu//distfiles/libpcap-0.7.1-prism.diff
>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/libpcap-0.7.1-prism.diff
>>> Downloading http://www.shaftnet.org/%7Epizza/software/libpcap-0.7.1-prism.diff
!!! Couldn't download libpcap-0.7.1-prism.diff. Aborting.


I went through all the emerge docs I could find, and I tried setting the cronjob to run a minute after I a had tested via the command line (so I knew it was working), then it suddenly came to me.....

here's the tip
Like many people to speed up (and enable resuming) I use prozilla, I don't really need to on adsl, but it's something I did on dial-up, so it's habit.

It's prozilla that needs the terminal, not emerge. stop using prozilla and all works well. :)
_________________
--
Gushy
Back to top
View user's profile Send private message
jfb3
Apprentice
Apprentice


Joined: 01 Feb 2003
Posts: 242

PostPosted: Mon Mar 17, 2003 1:27 pm    Post subject: Reply with quote

Maybe I'm missing something but why bother to sync every day if you're only going to update every 7 days? Why not just sync just before you do the update?
Back to top
View user's profile Send private message
Gushy
Apprentice
Apprentice


Joined: 03 Aug 2002
Posts: 284
Location: Reading, UK

PostPosted: Mon Mar 17, 2003 2:11 pm    Post subject: Reply with quote

aha, well the sync every day is for the next step.

I'm setting that same server up so that my other boxes sync from it rather than going to the main rsync servers. I update those boxes at random times when they are not being used, so I want to always have the server sync'd.

The step after that is to have it download all the relevant packages for each box on the network, but that's gonna take a little more work.

The tip was just meant to illustrate that prozilla can cause a problem, guess I gave away too much info! :roll:
_________________
--
Gushy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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