[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: something strange with rsh/ssh + bash/tcsh is happening. Please advise

Thank you Vincent,

But I am still wondering...

> So it runs the command /bin/echo with $1=1111.  However, /bin/echo
> doesn't use $1, and only prints an empty line which you see.
so you mean that in case
*> rsh localhost /bin/sh -c 'hostname -i'

hostname doesn't have really *argv == "-i" but rather environment variable
$1 is set to "-i", that is why hostname just provides me with a hostname.
Did I understand you correctly?

What is then proper way to run remote complex command ("bla1 -i; bla2 -k") or
"pipe" via ssh/rsh? It seems that I need a bit of tutorial after all the
years :-)

> Ciao. Vincent.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]

Attachment: pgp5XhFquxdrS.pgp
Description: PGP signature

Reply to: