Follow

Can I run Python to create Plugin Monitors ?

Question:

Can I use Python to create plugin monitor script?

Answer:

Yes, you can run basic Python scripts. They run natively for GNU/Linux  but if you run it in Windows you have to run it through a wrapper batch file.

Here is the example code:

@echo off

rem This will create the drive, path and filename variable (e.g "C:\Program Files (x86)\Traverse\plugin\monitors\filecheck\isfile.py")
SET script=%~d0%~p0%~n0.py

rem We run the script
c:\Python27\python.exe "%script%" %* 2> c:\users\public\dump

 

Replace 'isfile.py' for the right script name.

 

Attached the same example code.

 -

For more information about custom plugin please review:

TCP connections plugin monitor

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.