RE: How can I define my own trap?

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0A8930AC@mailserver.metatv-ds.metatv.com>
> From: Fernández Piñas, David [mailto:[email protected]] 
> Sent: Thursday, January 29, 2009 9:49 AM

> Try with "195557".

	OP's trying to pass a string, not an integer, so this should not be the solution.

> Take a look at this also:
>  
> http://tldp.org/LDP/abs/html/special-chars.html
>  
> http://tldp.org/LDP/abs/html/varsubn.html#DBLQUO
>  
> The colons are special characters.

	I don't think that's an issue either, per se, although it's tough to tell because we have no details to go on.  However, if this is a bash script, and the time was taken into a variable CTIME, then one would want to put the variable expansion inside double quotes to prevent the numbers at the front of the string from being interpreted as numerics, something bash can be pretty nasty with.


	HTH,

Mike

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.