Operating System - HP-UX
1832885 Members
2435 Online
110048 Solutions
New Discussion

remsh from HP-UX to Linux

 
Navin Patel
New Member

remsh from HP-UX to Linux

Hi,

I have a script in RedHat Linux6.2 which basically sorts a data file on multiple keys.

When the same data file is sorted by the same script in HP-UX 11.00 it gives different results. This typically happens when one of the sort keys has characters like ' # ' , ' / ' etc.

It proves that sort on the 2 OS are not equivalent.

But when i call the linux script from HP-UX using remsh command the sorting done on the linux box produces the result it produced on the HP box, ie HP - UX sort command is over riding that of the linux sort command.

So the problem is that the linux sort script when executed in linux box produces differnt results compared to when it is executed remotely from HP-UX using remsh.

How can this be prevented ?

Thanks for your help,
Navin
2 REPLIES 2
Volker Borowski
Honored Contributor

Re: remsh from HP-UX to Linux

Hi Navin,

I suspect a language setting being diffrent.
Check the LC environment-diffrences on the boxes and even on remote-shell calls.

Hope this helps
Volker
John Poff
Honored Contributor

Re: remsh from HP-UX to Linux

Hello Navin,

The command line for remsh/rsh can be a little tricky. Sometimes it helps to enclose the command in single quotes so that the entire command gets passed to the remote box.

For example:

remsh linuxbox ls -l | sort -n -k5

will pipe the results of the ls -l from the linux box and sort it locally, while:

remsh linuxbox 'ls -l | sort -n -k5'

will pipe the output and run the sort on the remote machine.

JP