Re: Problem with rsh from AIX to linux.
From: Hemant Shah (shah_at_typhoon.xnet.com)
Date: 05/17/04
- Next message: John-Paul Stewart: "Re: iptables log"
- Previous message: P Gentry: "Re: Power Off - APM"
- In reply to: Terry Polzin: "Re: Problem with rsh from AIX to linux."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 17 May 2004 20:47:50 +0000 (UTC)
In comp.unix.aix Terry Polzin <tmpolzin@netscape.net> wrote:
> Hemant Shah <shah@typhoon.xnet.com> wrote in message news:<c83de2$qlu$1@flood.xnet.com>...
>> I started having trouble running rsh from a AIX 5.1 system to Linux.
>> It was working until few days ago.
>>
>> From the above AIX system I run following commands:
>>
>> $ rsh linuxsys ls
>>
>> The command returns without any output and exit code of 1.
>>
>> $ rsh linuxsys -s ls
>> Mail
>> Maildir
>> mariner_sh_history
>> masscompile
>> setclasspath
>> setclasspath.ksh
>> sitemasscompile
>> startjem.ksh
>> tmp
>> x
>>
>>
>> The command works. The rsh commands works without any problem from other
>> AIX systems running AIX 4.3.3, AIX 5.1 and AIX 5.2. I only have problem
>> with this one system.
>>
>> My script transfers files using following command:
>>
>> /usr/local/bin/gtar -czf - | rsh linuxsys "cd /tmp;tar -xzf -"
>>
>>
>> The above command comes back with no errors or output. If I run ps command
>> on linuxsys I do not see any tar or gzip processes running.
>>
>> I also tried following command:
>>
>> /usr/local/bin/gtar -czf - | rsh linuxsys -a "cd /tmp;tar -xzf -"
>>
>> I get following error, and the process hangs:
>>
>> select: A file descriptor does not refer to an open file.
>>
>> On linuxsys I can see tar and gzip process running but not accumulating any
>> CPU time.
>>
>>
>> How can I figure out what is wrong?
>>
> 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.
I also checked the patchlevels on both of the AIX 5.1 systems and they are
same, yet the rsh commands works on one system and not on other.
--
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.
- Next message: John-Paul Stewart: "Re: iptables log"
- Previous message: P Gentry: "Re: Power Off - APM"
- In reply to: Terry Polzin: "Re: Problem with rsh from AIX to linux."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|