I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 687 votes ~ 10 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article A short introduction to cron-apt:
#1 Re: A short introduction to cron-apt Posted by Anonymous (81.175.xx.xx) on Wed 15 Jun 2005 at 12:16 I use this homebrew shell-script, it only mails if there is anything new: #!/bin/bash # # Cron Script - run from /etc/crontab or /etc/cron.daily # # Runs "apt-get update" and prints the output of a simulated # dist-upgrade if new packages are found. if [[ `apt-get update 2>&1 | grep Get` ]]; then if [[ `apt-get --simulate dist-upgrade 2>&1 | grep Inst` ]]; then apt-get --simulate dist-upgrade fi fi It can also be found on my website. Cheers! Mattias
#!/bin/bash # # Cron Script - run from /etc/crontab or /etc/cron.daily # # Runs "apt-get update" and prints the output of a simulated # dist-upgrade if new packages are found. if [[ `apt-get update 2>&1 | grep Get` ]]; then if [[ `apt-get --simulate dist-upgrade 2>&1 | grep Inst` ]]; then apt-get --simulate dist-upgrade fi fi
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account