[lug] Passing multiword parameters through rsh from ksh
Elyse M. Grasso
emgrasso at data-raptors.com
Fri Feb 23 11:18:07 MST 2007
When I pass a parameter with blank spaces in it through rsh, it gets split
into separate parameters when it reaches the remote program.
My ksh and rsh are pretty rusty. Is there a syntax for doing this?
Does not work:
script.ksh 'multiword value' value2
#!/bin/ksh
# check for valid params
rsh $HOST "progname" "$@"
also does not work:
#!/bin/ksh
# check for valid params
note=$1
shift
rsh $HOST "progname" "'$note'" "$@"
Google is not being helpful.
--
Elyse Grasso
http://www.data-raptors.com Computers and Technology
http://www.astraltrading.com Divination and Science Fiction
http://www.data-raptors.com/global-cgi-bin/cgiwrap/emgrasso/blosxom.cgi WebLog
More information about the LUG
mailing list