|
From: | sosogh |
Subject: | use parallel for ssh -tt "xxxx" |
Date: | Fri, 21 Aug 2015 10:01:09 +0800 |
Hi list
I install parallel in this way .
(wget -O - pi.dk/3 || curl pi.dk/3/ || fetch -o - http://pi.dk/3) |
bash haha@myserver:~$ parallel --version
GNU parallel 20150722 without -tt in ssh ,everything goes well:
parallel -a iplist.txt ' ssh -q {} "whoami" '
but with -tt , parallel will
not exit , it will freeze there when finishing the last job.
parallel -a iplist.txt ' ssh -qtt {} "sudo whoami" '
why I need -tt is to work around "ssh sudo: sorry, you must have a tty to run sudo".
Any hints for this problem are appreciated.
Thank you . sosogh
|
[Prev in Thread] | Current Thread | [Next in Thread] |