Re: Traps with Octet Strings with quotes

Cameron Laird (claird@Starbase.NeoSoft.COM)
Fri, 6 Jun 1997 14:01:24 -0500 (CDT)

From owner-tkined@ibr.cs.tu-bs.de Fri Jun 6 13:33:02 1997
Date: Fri, 06 Jun 1997 10:01:02 -0700
From: James Harwood <jharwood@ix.netcom.com>
.
.
.
The syslog message strings are encapsulated as OCTET-STRINGS within
the trap packets. Some of these messages include a user name that
is "quoted".

When Scotty/straps receives these traps, it throws an exception with
a message about 'extra characters after trailing quote'. The quote
.
.
.
Which is it? I doubt that it's straps, but suspect rather
that you've coded something like

$s bind {} trap {puts "%V"}

somewhere within a script you've fed to Scotty. That does
indeed lead to complaints. You're likely to have happier
results with

$s bind {} trap {puts [list $V]}

Incidentally, even the most experienced Tcl-ers I know
stumble over this periodically. I know I do.

Cameron Laird http://starbase.neosoft.com/~bodi/nesi.html
Network Engineered Solutions +1 713 763 8366
claird@NeoSoft.com +1 281 996 8546 FAX
Houston WWW Business Guide: http://starbase.neosoft.com/~bodi/HouGuide.html

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.