View previous topic :: View next topic |
Author |
Message |
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Aug 12, 2004 1:08 pm Post subject: Re: Include HostName |
|
|
RoadRunn wrote: | I actually modified the script to put the host name of the computer in the subject of the email so I know which computer the script is reporting on.
Code: | SUBJECT="glcu: New ebuilds for emerge $UPDATE on `/bin/hostname`" |
|
I think, you could just use the Variable $HOSTNAME for that...
Maybe I will add it soon. _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
dhurt Apprentice
Joined: 14 May 2003 Posts: 278 Location: Davis, CA
|
Posted: Thu Aug 12, 2004 4:37 pm Post subject: |
|
|
Just FYI, bash is aware of environmental varibles and so it can use:
_________________ "And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick |
|
Back to top |
|
|
zojas Veteran
Joined: 22 Apr 2002 Posts: 1138 Location: Phoenix, AZ
|
Posted: Fri Aug 13, 2004 10:13 pm Post subject: |
|
|
hi, just trying to wrap my head around this.
this script will build binary packages of any updates, but not actually install them. it emails you reports of glsas, and what packages need updating. so by the time you read the email, the packages are built, all you have to do is 'emerge -uDk world' and you'll get all the packages you built overnight?
this is really cool. I have two athlon-tbirds, a 1.33GHz workstation, and a 700MHz server. sounds like I could run this script on the workstation. then if I felt like it, I could install the binaries on the workstation, if that worked ok I could then install the binaries on the server. _________________ http://www.desertsol.com/~kevin/ppc |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Sat Aug 14, 2004 9:30 am Post subject: |
|
|
zojas wrote: | hi, just trying to wrap my head around this.
this script will build binary packages of any updates, but not actually install them. it emails you reports of glsas, and what packages need updating. so by the time you read the email, the packages are built, all you have to do is 'emerge -uDk world' and you'll get all the packages you built overnight?
|
That's completly right. Packages that need other packages can't be prebuilt, but 'glcu' recognises this and tells you, you still need to do 'emerge system' manually. For most packages it works fine, though
zojas wrote: |
this is really cool. I have two athlon-tbirds, a 1.33GHz workstation, and a 700MHz server. sounds like I could run this script on the workstation. then if I felt like it, I could install the binaries on the workstation, if that worked ok I could then install the binaries on the server. |
You could do it that way, but the binary packages are built with the USE- and CC-Flags of your workstation, and that might not be the same on the athlon-tbirds.... _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Sat Aug 14, 2004 11:53 am Post subject: |
|
|
Its abusive to sync daily? According to MOTD when I sync it says that anything that exceeds daily syncs is abusive..... _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Sat Aug 14, 2004 11:18 pm Post subject: |
|
|
gnuageux wrote: | Its abusive to sync daily? According to MOTD when I sync it says that anything that exceeds daily syncs is abusive..... |
I read something different in the forums before, and I think that most people don't need daily syncing, because they don't have such critical systems at home. Daily syncing is only good to have actual GLSA's, but if you only have a dial-up connection, there is no danger in syncing only once a week, I think...
So before people put this script in /etc/cron.daily and occasionally sync during the day again (which would be abusive), I suggest to put this script in /etc/cron.weekly... Server-Administrators, who really (think they) need it, can run it daily if they want. I won't blame them _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Tue Aug 17, 2004 5:51 pm Post subject: |
|
|
I agree. I dont think that its really nesc. to sync daily. _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Aug 19, 2004 8:40 am Post subject: |
|
|
Hello everyone!
After developing glcu - gentoo linux cron update for some time now, I think it is quite usable. Nevertheless I'm thinking of changing several things, and would appreciate it very much if you would comment my ideas:
1. Restructering glcu that it only sends one eMail and not two. Do the eMails get too long then, or would it be much cleaner to look only for one eMail?
2. Adding an 'automatic update' feature. Don't prebuild packages, but do an real upgrade during the night and send only the errors. It would be only for the brave...
3. Adding a 'quiet' option, so only send what has been done (not all the error logs). It would shorten the eMails very much.
4. Rewriting glcu in python. Because I like to learn python, I thought this might be a good project especially because I can probably use some emerge libs directly. Does anyone care about the language?
So, what do you want? (I appreciate any suggestions!) _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
blackcell n00b
Joined: 17 Aug 2002 Posts: 56 Location: Oregon
|
Posted: Wed Sep 08, 2004 12:49 pm Post subject: |
|
|
untiefe wrote: | Hello everyone!
After developing glcu - gentoo linux cron update for some time now, I think it is quite usable. Nevertheless I'm thinking of changing several things, and would appreciate it very much if you would comment my ideas:
1. Restructering glcu that it only sends one eMail and not two. Do the eMails get too long then, or would it be much cleaner to look only for one eMail?
I'd prefer a single email only because I get too much as it is.
2. Adding an 'automatic update' feature. Don't prebuild packages, but do an real upgrade during the night and send only the errors. It would be only for the brave...
How do you plan on handling the package updates that require user interaction such as etc-updates?
Regardless if there were errors or not I'd prefer a mail telling me what was updated. Something like...
Emerge Package xyz.1.2.3 ---> Success!
3. Adding a 'quiet' option, so only send what has been done (not all the error logs). It would shorten the eMails very much.
Sounds good.
4. Rewriting glcu in python. Because I like to learn python, I thought this might be a good project especially because I can probably use some emerge libs directly. Does anyone care about the language?
Nope, Python sounds good.
5. What about...
Possible to include in the email what packages require user interaction? Besides the ones that require etc-updat'ing, others that include instructions outputted from ebuild scripts to update/complete the install.
So, what do you want? (I appreciate any suggestions!) |
_________________ "If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Sun Oct 24, 2004 4:28 pm Post subject: |
|
|
(Thanx for your reply blackcell)
I have another question. Which packages shouldn't be upgraded automatically?
- Kernel
- nvidia-kernel
-
what else? _________________ "I'm an angel bored like hell
And you're a devil meaning well"
:: Cardigans - You're The Storm ::
glcu - gentoo linux cron update (full featured semi-automatic updates via cron) |
|
Back to top |
|
|
CrashNBurns n00b
Joined: 06 Jul 2004 Posts: 14
|
Posted: Thu Dec 23, 2004 9:11 pm Post subject: Recommendation (minor) |
|
|
untiefe,
A minor recommendation: Add the '-n' option to the glsa-check command such that it removes the color from the output before parsing. I was getting color control codes in the email which was quite distracting. Adding the '-n' option removes the color formatting.
Thanks,
- CrashNBurns
P.S. Thanks for putting this script together -- works great! |
|
Back to top |
|
|
|
|
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
|
|