Re: rsh question

From: Barry Deevey (Barry.Deevey@SEFAS.CO.UK)
Date: Wed Oct 23 2002 - 08:08:24 EDT


Thanks Simon & Klaus,

I'd already tried what you both suggested without success. However, the
command I was running gave me an error regarding an incorrect number of
parameters being passed, but after further investigation I discovered the
parameters were being passed successfully the fault was within the
application.

Apologies for not discovering this before posting.

Many thanks for your help.

Barry.

-----Original Message-----
From: Green, Simon [mailto:SGreen@KRAFTEUROPE.COM]
Sent: 23 October 2002 12:47
To: aix-l@Princeton.EDU
Subject: Re: rsh question

I've done this in the past by enclosing the double quotes in single quotes.

e.g. rsh systemx command '"param1"' '"param2"'

I think that would work if you just put the entire command inside single
quotes:

e.g. rsh systemx 'command "param1" "param2"'

If you want to use local variables instead of hard-coding the parameters,
then
the only way I could come up with was to use echo.

e.g. echo rsh systemx command \'\"$param1\"\'

I usually write it to another file, then run that; it gives me a chance to
check
that the first script has done what I expected.

Simon Green
Philip Morris ITSC Europe

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will seldom be appreciated.

> -----Original Message-----
> From: Barry Deevey [mailto:Barry.Deevey@SEFAS.CO.UK]
> Sent: 23 October 2002 12:17
> To: aix-l@Princeton.EDU
> Subject: rsh question
>
>
> Hi all,
>
> I'm trying to run a rsh command, and I need to pass 2 parameters in double
> quotes on the remote machine, i.e. I require the remote command to be
>
> # command_to_run "param1" "param2"
>
> But I cannot seem to be able to pass the double quotes over to the remote
> machine.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:16 EDT