bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports Unable to execute remote commands to server


From: Zhi Shen
Subject: Re: GNU Parallel Bug Reports Unable to execute remote commands to servers running SunOS
Date: Thu, 8 Aug 2013 09:59:07 -0400

On Thu, Aug 8, 2013 at 4:23 AM, Ole Tange <address@hidden> wrote:
On Wed, Aug 7, 2013 at 10:09 PM, Zhi Shen <address@hidden> wrote:
>
> On Wed, Aug 7, 2013 at 3:08 PM, Ole Tange <address@hidden> wrote:
:
>> ssh -tt works fine from SunOS 5.10 XOR to SunOS 5.10.
>>
>> The best option to fix this is to find a way to get the
>> Sun_SSH-server/client combo to work. I don't have a lot contacts in
>> the SunOS world, so I will be relying you to help me out here.
>>
>> A less preferable option is to check if the client and server runs
>> Sun_SSH and if so revert to the old ssh-method that does not transfer
>> Ctrl-C. It is reasonably easy to see if the ssh-client is Sun_SSH (ssh
>> -V), the remote can probably be detected with ssh -v (debug1: Remote
>> protocol version 2.0, remote software version Sun_SSH_1.1).
>>
>> Zhi Shen: can you help with the first option?
>
> Ole, I tried to reproduce your results but they are quite different.

Your results are as expected.

I should have stressed that you need to run the tests from solaris to
the same solaris machine to see the results. Also this is simply to
show why the -tt is needed (the sleep will only be killed if you use
-tt).

On solaris the remote command is actually run, but it is simply the
output that is missing:

solaris$ rm -f /tmp/ged
solaris$ </dev/null ssh -tt solaris touch /tmp/ged
solaris$ ls -l /tmp/ged
-rw-r--r--   1 tange    other          0 Aug  8 07:02 /tmp/ged
# This is as expected: The touch command was clearly run

solaris$ </dev/null ssh -tt solaris echo ged
tcgetattr: No such device or address
Connection to solaris closed.
# The output of echo was missing

When comparing '</dev/null ssh -v -tt solaris echo ged' to '</dev/null
ssh -v -tt redhat echo ged' I see:

< debug1: Peer sent proposed langtags, ctos: i-default
< debug1: Peer sent proposed langtags, stoc: i-default
---
> debug1: Peer sent proposed langtags, ctos:
> debug1: Peer sent proposed langtags, stoc:

I do not know if these are causing the problem.

It is '</dev/null ssh -tt solaris echo ged' that we need to find a
solution to. It works fine if run to or from a non-solaris machine.
And it actually runs the command when run on from a SunOS machine to a
SunOS machine - it is only the output that is missing.

If your SunOS experts ask why </dev/null and -tt are needed you answer:

</dev/null is because we run multiple commands in parallel, thus they
can not get the current tty.
-tt is needed because otherwise Ctrl-C will not work remotely.


/Ole

In my case, the "ssh -tt" command does not return the results from Redhat to SunOS.

redhat$ </dev/null ssh -tt solaris echo ged
tcgetattr: Inappropriate ioctl for device
Connection to solaris closed.

redhat$ </dev/null ssh solaris echo ged
stty: : Invalid argument
ged

I'll pass the question along to our infrastructure group.

Thanks,
zhi

reply via email to

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