Re: Sending variables via rsh which contains "$"

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 08/17/05

  • Next message: fmu_at_OERAG.DE: "monitoring errorlog with wsm?"
    Date:         Wed, 17 Aug 2005 11:55:37 +0200
    To: aix-l@Princeton.EDU
    
    

    rsh server2 echo `test*\$89'

    -- 
    Simon Green
    Altria ITSC Europe s.a.r.l.
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
     
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Alberto Cozer
    Sent: 17 August 2005 00:50
    To: aix-l@Princeton.EDU
    Subject: Sending variables via rsh which contains "$"
    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/ <mailto:root@server1:/usr/local/bin/>  #
    echo test*$89
        test*9
    2) root@server1:/usr/local/bin/ <mailto:root@server1:/usr/local/bin/>  #
    echo 'test*$89'
        test*$89
    3) root@server1:/usr/local/bin/ <mailto:root@server1:/usr/local/bin/>  # rsh
    server2 echo test*$89
        test*9
    4) root@server1:/usr/local/bin/ <mailto: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. 
    

  • Next message: fmu_at_OERAG.DE: "monitoring errorlog with wsm?"