nv-l
[Top] [All Lists]

re: using variables with nvmail

To: nv-l@lists.tivoli.com
Subject: re: using variables with nvmail
From: "Bill Evans" <wvevans@prodigy.net>
Date: Sat, 30 Sep 2000 12:10:47 -0400
This is a multi-part message in MIME format.
The $1 notation works for me when the command is entered directly on the 
command line for the Trap Configuration menu.  
If entered into an NT Batch File (.BAT or .CMD) you must use the appropriate NT 
notation; %1, and pass the 
data from the Trap processing daemon using the $1 notation. 
 
Using single and double quotes in the command may affect the substitution 
process as well.  Using the Hidden versus the Console version of the command 
environment may also affect the execution.  Read the book (Programmers 
Reference) carefully and remember that the product, in many respects, is a port 
from Unix and things like $1 are Unix constructs which sometimes were modified 
to the Microsoft Windows paradigm and sometimes were not. 

I'm still trying to identify the variables involved. On one machine with 
NetView daemons active the nvmail process works from a .BAT file but on another 
without NetView active and using Regina to process the command it doesn't.   
Next week I'll diagnose where the critical difference lies (NetView daemons? my 
SMTP server? Regina?) unless someone gives me a hint this weekend.  

Bill Evans  --  Consultant in Enterprise Systems Management
reply-to: wvevans@prodigy.net  
Phone: 919-696-7513 
Send short text messages to 9196967513@messaging.sprintpcs.com 
The $1 notation works for me when the command is entered directly on the command line for the Trap Configuration menu. 
If entered into an NT Batch File (.BAT or .CMD) you must use the appropriate NT notation; %1, and pass the
data from the Trap processing daemon using the $1 notation. 
 
Using single and double quotes in the command may affect the substitution process as well.  Using the Hidden versus the Console version of the command environment may also affect the execution.  Read the book (Programmers Reference) carefully and remember that the product, in many respects, is a port from Unix and things like $1 are Unix constructs which sometimes were modified to the Microsoft Windows paradigm and sometimes were not. 
 
I'm still trying to identify the variables involved. On one machine with NetView daemons active the nvmail process works from a .BAT file but on another without NetView active and using Regina to process the command it doesn't.   Next week I'll diagnose where the critical difference lies (NetView daemons? my SMTP server? Regina?) unless someone gives me a hint this weekend. 
 
Bill Evans  --  Consultant in Enterprise Systems Management
reply-to: wvevans@prodigy.net 
Phone: 919-696-7513
Send short text messages to 9196967513@messaging.sprintpcs.com




<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web