diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-10-15 22:28:50 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-10-15 22:28:50 (EDT) |
commit | c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62 (patch) | |
tree | 5c39ef71fb0f726cccd5af74d266d96f61266d4a | |
parent | 30536928fd13d6bf28fb86077e90c94f3846b6a8 (diff) | |
download | printq-c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62.zip printq-c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62.tar.gz printq-c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62.tar.bz2 |
Log to syslog
-rwxr-xr-x | printq | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -33,6 +33,7 @@ print_from_queue() set -- "${@}" -o "${opt}" done 0<"${queue}/.options" + logger -t 'printq' "Printing ${queue}/${file}" lp "${@}" "${queue}/${file}" || return 1 rm -f "${queue}/${file}" || return 1 @@ -48,6 +49,7 @@ watch_queues() local event_filename= local dest= + logger -t 'printq' "Watching queues under ${dir}" inotifywait -m -r -q -e close_write "${dir}" | \ while read -r watched_filename event_names event_filename; do dest="${watched_filename#${dir}}" |