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

Re: script to do nightly dist-upgrade



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jul 30, 2002 at 10:17:50AM +0100, Ben Thompson wrote:
> The trouble is: sometimes my internet connection times out and apt-get exits 
> with errors, and the poff and poweroff commands never get called. Could 
> someone advise how to modify the script to esure that the last two commands 
> always get called even if apt-get fails?

Sure.

#! /bin/bash

pon ntl && sleep 35 && apt-get update && apt-get dist-upgrade -dy ; poff && poweroff


- -- 
Baloo


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9RluQNtWkM9Ny9xURAp6+AKCufn+Fnx77gW/3yhz+PmxeVjvEQwCfUTl2
hOBu8LX2jP+pI5Dt76RPets=
=kVns
-----END PGP SIGNATURE-----


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



Reply to: