msloan_Cardinal
03-17-2005, 10:16 PM
Hello,
I am on the receiving end of an SNMP trap which contains ampersands, i.e. AT&T. This trap is being passed into Unicenter via a DOS shell, at which point it errs out. The traps are approx. 3,500 characters long. The ultimate destination of the traps is a Perl script which will interpret it, then process pieces of it.
My issue is that the trap will not make it past the DOS shell without the ampersand being interpreted as a command, resulting in something along the lines of "T is not recognized as an operable batch file......".
Similar traps that are 2,400 characters in length are processed correctly. It's just these long ones. Has anyone run across this? Is there a utility that can handle this? Is there a sequence of characters that I can add to the trap before sending it to DOS? I have absolutely NO way of controlling the input. Please help.
Thank you
I am on the receiving end of an SNMP trap which contains ampersands, i.e. AT&T. This trap is being passed into Unicenter via a DOS shell, at which point it errs out. The traps are approx. 3,500 characters long. The ultimate destination of the traps is a Perl script which will interpret it, then process pieces of it.
My issue is that the trap will not make it past the DOS shell without the ampersand being interpreted as a command, resulting in something along the lines of "T is not recognized as an operable batch file......".
Similar traps that are 2,400 characters in length are processed correctly. It's just these long ones. Has anyone run across this? Is there a utility that can handle this? Is there a sequence of characters that I can add to the trap before sending it to DOS? I have absolutely NO way of controlling the input. Please help.
Thank you