Re: snmptrap and single quote using java's Runtime.getRuntime().exec function

2006-04-19 Thread Robert Story
On Tue, 11 Apr 2006 16:01:11 +0300 Ofer wrote: OG> snmpCmd = "/usr/bin/snmptrap -v 2c -c public " + nmsIpAddress + OG> " '' PROXY-MIB::proxyWrongUserPassTrap OG> PROXY-MIB::proxyWrongUserPassTrap s " + snmpTrapDesc; OG> Logger.logInformation(this, snmpCmd); OG> Run

snmptrap and single quote using java's Runtime.getRuntime().exec function

2006-04-11 Thread Ofer Goren
Hi All I have the following piece of java code:    snmpTrapDesc = "Bad-administartor-Username-or-Password"; snmpCmd = "/usr/bin/snmptrap -v 2c -c public " + nmsIpAddress +                    " '' PROXY-MIB::proxyWrongUserPassTrap PROXY-MIB::proxyWrongUserPassTrap s " + snmpTrapDesc;