Displaying 2 results from an estimated 2 matches for "open_log_file".
2020 Feb 11
1
NOTIFYCMD not running
> When you run that command, does "some text" appear in the system log?
When I run Documents/scripts/ups-log.py manually I do see the expected text
echo'ed to the command line. It actually appends to a Google Sheet, not
the internal log files.
When I would expect to see it triggered by NOTIFYCMD, I don't see any text
printed and nothing shows up at the google sheets. If
2020 Feb 12
0
NOTIFYCMD not running
...t;. Record every call of ups-log.py in
> "fd_log",
> whether valid or not. Does "some text" appear in "fd_log"? For the other
> calls
> of ups-log.py, does anything appear in "fd_log"?
>
> Roger
>
> For example:
>
> # Function open_log_file opens a file for logging
> # The file owner will be uid, with group gid, e.g. upsd:daemon
> # Returns file handle
> def open_log_file (logfile, uid, gid) :
> try :
> fd_log = open(logfile, 'a') # Opened for current user, re-open if
> user change
> os.chmo...