Try:
KEY= `xauth list $DISPLAY | cut -d ' ' -f 5| perl -e 'while
(<>){chop;print;}'`
That is additional ` (backquotes) around the right hand side.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 28, 2000 6:22 PM
Subject: [linux-delhi]shell script
>
>
>
> hi,
>
> (may be a very trivial issue for many of u......)
>
> i have this small shell script
>
> KEY= xauth list $DISPLAY | cut -d ' ' -f 5| perl -e 'while
(<>){chop;print;}'
> rsh $1 /usr/openwin/bin/xauth add krkmohan.ddw.hss.hns.com:0 . $KEY
>
> this script doesnt execute correctly saying the following error
>
> /usr/openwin/bin/xauth: (argv):1: bad "add" command line
>
> when I tried these two commands as such on the command line by replacing
the
> $KEY with the value
> i obtain after executing first command it was workin fine.
>
> any pointers as to where am i going wrong...
>
>
> regards
> krk
>
>
>
> --------------------------------------------------------------------
> The mailing list archives are available at
> http://lists.linux-india.org/cgi-bin/linux-delhi
>
--------------------------------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/linux-delhi