theneil has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I've searched everywhere and can't find an answer so I guess I need to ask it!
I'm calling a perl script from BMC Impact Explorer that's filtering each ticket to the right support group using a Bayesian (SPAM Filtering) approach. I use the get_external function which sends the ticket message to the perl script and expects the group as the result.
But I am having trouble returning the group in the proper format. I HAVE however created a dummy .bat file that returns the output in the correct format (using the format I found on the BMC Communities forum)
I am wondering if anyone can essentially translate my .bat file output to Perl output?
.bat file:
I literally need to output those strings in the same way that it's done in the .bat file. Any ideas? Thanks!echo BAYES; >> %1 echo bayesClass=nameOfClassVariable; >> %1 echo END >> %1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Batch to Perl translation (just 1 line, not the whole script)
by BrowserUk (Patriarch) on Aug 07, 2012 at 18:25 UTC | |
|
Re: Batch to Perl translation (just 1 line, not the whole script)
by aitap (Curate) on Aug 07, 2012 at 20:50 UTC |