mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit b8c93358a7f0d1504524b19309e0c17d07e2cd9e
parent 975e6056a8344aafb0556965b3e2eeb15e61827c
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 24 Mar 2022 09:13:06 +0100

comments

Diffstat:
upgrades | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/upgrades b/upgrades @@ -2,10 +2,16 @@ # upgrade all hosts specified in ARGV +# start screen session named "apt" screen -S apt -dm 'zsh' for m in $@ do + # start new terminal in the current session, doing the following + # - ~/bin/wake: wake host using wake-on-LAN if necessary + # - wait for host to wake up + # - SSH on host and do the upgrades + # - test if SSH-ing to the host still works screen -S apt -x -X screen -t $m zsh -c \ "echo \"=== upgrading $m ===\n\n\"; ~/bin/wake $m; @@ -17,5 +23,6 @@ do exec zsh" done +# now, attach to the created screen session screen -x apt