parallel
[Top][All Lists]
Advanced

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

Re: Re: use parallel for ssh -tt "xxxx"


From: Ole Tange
Subject: Re: Re: use parallel for ssh -tt "xxxx"
Date: Sat, 29 Aug 2015 01:41:12 +0200

On Fri, Aug 28, 2015 at 9:04 AM, sosogh <sosogh@mail.com> wrote:
>    >> parallel -a iplist.txt 'ssh -qtt {} "sudo whoami" </dev/null'
>    >> parallel -a iplist.txt 'ssh -qtt {} "sudo whoami"' </dev/null
>    >> cat iplist.txt | parallel 'ssh -qtt {} "sudo whoami"'
>
> Thank you .
>
> I  have a strange problem ,
> if     cat iplist.txt | parallel 'ssh -qtt {} "sudo /usr/sbin/userdel  -rf
> abcuser " '    , it still freeze ,
> but sudo other cmd  will work well .

I have tested and cannot reproduce this. I think it is a local problem
on your system(s).

You could try:

cat iplist.txt | parallel -uj1 'ssh -qtt {} "sudo /usr/sbin/userdel
-rf abcuser " '
cat iplist.txt | parallel --tty 'ssh -qtt {} "sudo /usr/sbin/userdel
-rf abcuser " '
cat iplist.txt | parallel --dry-run 'ssh -qtt {} "sudo
/usr/sbin/userdel  -rf abcuser " ' > /tmp/foo
bash -x /tmp/foo

How small can you make iplist.txt and still get the issue? Can it just
contain localhost?

To debug the problem it is very important to be able to reproduce the
error. Therefore I would like you to reproduce the problem on one of
the virtualboxes from
http://sourceforge.net/projects/virtualboximage/files/


/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]