Sending variables via rsh which contains "$"
From: Alberto Cozer (acozer_at_UOL.COM.BR)
Date: 08/17/05
- Previous message: Bob Booth - CITES: "Re: aix printing to a printserver"
- Next in thread: Jef Lee: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Jef Lee: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Sunder Iyengar: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Green, Simon: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Jef Lee: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Ruby Domalanta: "Re: Sending variables via rsh which contains "$""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Bob Booth - CITES: "Re: aix printing to a printserver"
- Next in thread: Jef Lee: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Jef Lee: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Sunder Iyengar: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Green, Simon: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Jef Lee: "Re: Sending variables via rsh which contains "$""
- Maybe reply: Ruby Domalanta: "Re: Sending variables via rsh which contains "$""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]