Re: Antwort: Re: problems with rsh command

From: Jean-Marc Monnez (monnez.jean-marc@AGORA.MSA.FR)
Date: Fri Jul 12 2002 - 10:06:24 EDT


Try quoting the -e argument with simple quotes :
rsh ikarus aixterm -T test -display hermes:0.0 -ls -e "su - db2test aixterm
-e 'sleep 10;date;sleep10'"

Regards

-- JMM

fmu@OERAG.DE a écrit :

> Hi *,
> thanks but both solutions do not function.
>
> > use -l to specify what user to run as???
>
> > Separate commands with a ";". Perhaps do a "su - username -c aixterm -e
> command1;command2;command3"
>
> rsh ikarus aixterm -T test -display hermes:0.0 -ls -e "su - db2test aixterm
> -e "sleep 10;date;sleep10""
> or
> rsh ikarus aixterm -T test -display hermes:0.0 -ls -e "su - db2test aixterm
> -e sleep 10;date;sleep10"
> or
> rsh ikarus aixterm -T test -display hermes:0.0 -ls -e su - db2test "-c
> sleep 10;date;sleep10"
>
> No matter how I it make it false complete or only the first command runs in
> the users-shell. The second command run in the first shell where I start
> the rsh.
> I think I must start a remote shell....
>
> Best regards,
> Frank Müller



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