[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script to do nightly dist-upgrade



hi

Ben Thompson wrote on Tue, Jul 30, 2002 at 10:17:50AM +0100: 
bt> 
bt> pon ntl && sleep 35 && apt-get update && apt-get dist-upgrade -dy && poff && 
bt> poweroff

[:snip:]

bt> someone advise how to modify the script to esure that the last two commands 
bt> always get called even if apt-get fails?

pon ntl && sleep 35 && apt-get update && apt-get upgrade && (poff; poweroff) || (poff; poweroff)

 -Suraj
-- 
+----------------------------------------------<suraj@chennailug.org>--+
| Decline of status mars dignity; like                                 |
| hair fallen from the head                                            |
| (sensibility to dignity - 4), Thirukkural                            |
+--<http://www.symonds.net/~suraj/>------------------------------------+


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: