【发布时间】:2016-07-21 02:00:28
【问题描述】:
我正在尝试使用 python pyinotify 添加手表并守护通知程序。
notifier = pyinotify.Notifier(wm, handler)
notifier.loop(daemonize=True, pid_file='/tmp/pyinotifier.pid',
stdout='/tmp/out.log', stderr='/tmp/error.log')
但是我可以找到,日志文件被覆盖而不被附加。
有没有办法追加stdout 和stderr?
我在 Linux 操作系统上。
谢谢
【问题讨论】: