Sending variables via rsh which contains "$"

From: Alberto Cozer (acozer_at_UOL.COM.BR)
Date: 08/17/05

  • Next message: Jef Lee: "Re: Sending variables via rsh which contains "$""
    Date:         Tue, 16 Aug 2005 20:49:36 -0300
    To: aix-l@Princeton.EDU
    
    

    Hello Everybody,

    Does anybody knows how to make a shellscript pass a variable which contains "$" followed by a number, without having it changed to null?

    Example:

    1) root@server1:/usr/local/bin/ # echo test*$89
        test*9

    2) root@server1:/usr/local/bin/ # echo 'test*$89'
        test*$89

    3) root@server1:/usr/local/bin/ # rsh server2 echo test*$89
        test*9

    4) root@server1:/usr/local/bin/ # rsh server2 echo 'test*$89'
        test*9

    Command #4 doesn't work as expected and always converts the $8 to null. Already tryed changing the ' ' to \' \' as well as a lot of other weird combinations with ', ´, `, and ", without success. Any help will be highly appreciated.

    Thanks a bunch,
    Alberto.

    ======================================
    Alberto Cozer
    Systems Security Egineer
    Check Point Certified Security Expert, CCSE NG
    IBM Certified AIX Specialist


  • Next message: Jef Lee: "Re: Sending variables via rsh which contains "$""