07-29-2008 11:09 PM
I wrote a program in and there are 2 dynamic variables need to be pass to the program where syslog generate
$D - device name and
$M - syslog message
Why the following does not work ? which sytax I should use ?
d:/PROGRA~1/CSCOpx/files/scripts/syslog/kentrap.bat $D $M
07-29-2008 11:30 PM
Hi friend,
i guess the spaces between the batch and the variables are the problem.
Try to set the whole string into quotas.
e.g. "d:/PROGRA~1/.... $D $M"
Or create another batchfile from where you execute the mentioned command and parameters.
Hope that helps a bit.
Best regards,
Frank
07-30-2008 06:58 AM
This won't work. $D and $M are obsolete. You should just enter your script name in the dialog. Within the script, you can get the hostname by dereferencing %~1 and the syslog message by dereferencing %~2.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide