3 # Trace libraries load by first argument (ELF only)
4 # (note: exactly same result with ldd)
6 LD_TRACE_LOADED_OBJECTS=1 $1
10 # if the first argument is void, proceed local upgrade
11 # else, send command via ssh
12 # assume user have sufficient permission for upgrade
16 # i use sudo with the follow lines
18 # Cmnd_Alias DEBIAN = /usr/bin/apt-get, /usr/bin/dpkg
19 # asyd ALL = PASSWD: ALL, NOPASSWD: DEBIAN
23 sudo apt-get -u upgrade
25 ssh $1 sudo apt-get update
26 # ask before the upgrade
28 ssh $1 sudo apt-get --no-act upgrade
29 echo -n "Process the upgrade ?"
31 if [[ $dummy == "y" ]] ; then
32 ssh $1 sudo apt-get -u upgrade --yes
37 compdef _hosts upgrade
40 echo $1 | perl -e 'chomp($s=<>);$p=(stat($s))[2] & 07777;printf "$s -> %04o\n",$p'
44 find / -perm +4000 -print
58 echo cd: too many arguments