diff options
author | VG <vg@devys.org> | 2016-04-21 23:21:11 +0200 |
---|---|---|
committer | VG <vg@devys.org> | 2016-04-21 23:21:11 +0200 |
commit | 3947ef7790eba735b6d56a6f0a88b1dff39e89dd (patch) | |
tree | e6e9bd91facf17ade58fb4a9fbf5c943a2ac2e20 /readme.rst | |
parent | 95573b5e90d88574e9110399df02865305b99f7c (diff) | |
download | teaqueue-3947ef7790eba735b6d56a6f0a88b1dff39e89dd.tar.gz teaqueue-3947ef7790eba735b6d56a6f0a88b1dff39e89dd.tar.bz2 teaqueue-3947ef7790eba735b6d56a6f0a88b1dff39e89dd.zip |
Auto-commit on 807fe7afb37fe2cfcf15c9457d04f64fa11b7511
Diffstat (limited to 'readme.rst')
-rw-r--r-- | readme.rst | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -72,7 +72,8 @@ able to be interruptible without interrupting the underlying job. .. code:: shell #!/bin/sh - flock -x /var/lock/transcode_my_file.sh.lock ffmpeg -i "$1" -arg -arg & + [ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -e "$0" "$@" + ffmpeg -i "$1" -arg -arg & The first `ffmpeg` command will go to background then, the second will wait until the first `ffmpeg` finishes. If the `teaqueue` command is interrupted, |