Closed openSourcerer9000 closed 1 year ago
OK, so I filled out the batch script with what I really want to do - activate python and run a script.
It seems like what's happening is that the console doesn't get passed through to filewatcher. This appears in the log now:
2023-03-22 11:07:50 INFO The execution 'C:\app\test.bat "C:\Users\seanm\Desktop\temp\fw\myfile.txt"' has exited. Exit code: 0.
I assume this means there was an error in either my bat file or python code? How can I let it print from the console for debugging? - especially if it could log it that would be ideal.
Can you try this beta release: 1.5.0-beta?
This release should redirect standard output to the log file.
Perfect, works great!
So I'm trying to run a .bat file that just does this for now:
This is my config.xml:
I'm running filewatcher from the cmd prompt. The action works just fine, but nothing happens either in the cmd prompt or the log to suggest it tried to run the command. My log file only logs when the watch begins, and when actions are performed, not that a new file has been created.
Is there something I might be doing wrong? thanks
Windows 10