Re: Problem with rsh from AIX to linux.

From: Hemant Shah (shah_at_typhoon.xnet.com)
Date: 05/18/04


Date: Tue, 18 May 2004 19:17:51 +0000 (UTC)

While stranded on information super highway Villy Kruse wrote:
> On Mon, 17 May 2004 20:47:50 +0000 (UTC),
> Hemant Shah <shah@typhoon.xnet.com> wrote:
>
>
>>> I think you are missing some parahtneses correct syntax should be as follows:
>>>
>>> /usr/local/bin/gtar -czf - | rsh linuxsys -a "(cd /tmp;tar -xzf -)"
>>
>> Oops, I copied and pated wrong command. I was using "(" and ")" around the
>> commands.
>>
>
> And what did you actualy use. In my experience, the parenteses are not
> important, but the quotes are. Also it is a good habit IMHO to replace the

  I used following command:

  /usr/local/bin/gtar -czf - | rsh linuxsys -a "(cd /tmp;tar -xzf -)"

> semicolon with && so the line would read:
>
> /usr/local/bin/gtar -czf - | rsh linuxsys -a 'cd /tmp && tar -xzf -'

  Thanks for the pointer, I will use && from now on.

>
> That would prevent an embarasment if the cd command failed. In other
> words, tar is only run if cd was successful. By the way, what does the '-a'
> do?
>
> Villy

 Here is more info.

 System A ==> AIX 5.1 system that is having problem with rsh.
 System B ==> Linux (2.4.18-27.8.0) system that is the target for the rsh
              command.
 System C ==> Any other AIX (4.3.3, 5.1, 5.2)/Linux (Redhat 6, 7 and 9)
              system.

 I can run rsh from A to C without any problem.
 I can run rsh from C to B without any problem.

 I am having problem with rsh from A to B.

 Systems A and C are in U.S. and system B is in our office in phillipines
 connected for dedicated T1 line.

 I have another AIX 5,1 system that is at the identical patch level as
 system A and I can rsh from that system to the system C.

-- 
Hemant Shah                           /"\  ASCII ribbon campaign
E-mail: NoJunkMailshah@xnet.com       \ /  --------------------- 
                                       X     against HTML mail
TO REPLY, REMOVE NoJunkMail           / \      and postings      
FROM MY E-MAIL ADDRESS.           
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind,                Above opinions are mine only.
it's backed up on tape somewhere.      Others can have their own.


Relevant Pages

  • Re: Does xp_cmdshell kill commands?
    ... default of 600 and "query timeout" is set at the default ... When run "normally" (from a command prompt or batch file) it worked ... including the native Windows rsh command and Cygwin's rsh ... >> Linux, VMS, and a Windows system running a Windows rshd. ...
    (microsoft.public.sqlserver.server)
  • Re: How to detach from remote command?
    ... the rsh keeps the connection open until the sleep command ... rsh remote sleep 100 "&" ... to the remote machine. ...
    (comp.os.linux)
  • Re: Cannot rsh from linux to aix
    ... Kerberos was running on my Linux machine, but not on the AIX machine. ... The key command to run was ... (which returned that rsh was running through kerberos) ... > remote host. ...
    (comp.unix.admin)
  • Re: Problem with rsh from AIX to linux.
    ... >> I started having trouble running rsh from a AIX 5.1 system to Linux. ... >> The command returns without any output and exit code of 1. ... >> on linuxsys I do not see any tar or gzip processes running. ... I also checked the patchlevels on both of the AIX 5.1 systems and they are ...
    (comp.unix.aix)
  • Re: VAX/VMS-WNT integration...
    ... > I can issue Solaris commands from VMS using RSH, but could I use RSH with WNT? ... I had RSH from the NT4.0 Server resource kit working for many years. ... command procedure. ...
    (comp.os.vms)