Piviul,
It looks as if the mailing list has introduced a new line where there's
not meant to be one. Apologies for not noticing that earlier.
The line "logfile =" is meant to read:
"logfile =
subprocess.Popen(['tail','-F','/var/log/tomcat7/catalina.out'],stdout=subprocess.PIPE,stderr=subprocess.PIPE)"
- all on the one line.
I suspect in your script you'll just need to bring up the text in line
below "logfile =" and tack it on the end for it to work.
On 1/04/2020 10:59 p.m., Piviul wrote:
ivanmarcus ha scritto il 15/03/20 alle 02:57:
I've already written a Python script that reads the log and sends the
magic packet as needed. It's been running for a couple of years now,
Many thanks Ivan! I would like to use your script but when I run it I
get the error:
$ ./guac_wol.py
File "./guac_wol.py", line 64
logfile =
^
SyntaxError: invalid syntax
I don't know python and I can't understand why I get this error in
your script...
Piviul
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]