From 95573b5e90d88574e9110399df02865305b99f7c Mon Sep 17 00:00:00 2001 From: VG Date: Wed, 20 Apr 2016 19:49:44 +0200 Subject: Auto-commit on 807fe7afb37fe2cfcf15c9457d04f64fa11b7511 --- readme.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'readme.rst') diff --git a/readme.rst b/readme.rst index f2b1442..3db9dd7 100644 --- a/readme.rst +++ b/readme.rst @@ -69,6 +69,15 @@ Then run again `teaqueue`:: program to convert your videos. The important point is the script should be 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 & + +The first `ffmpeg` command will go to background then, the second will wait +until the first `ffmpeg` finishes. If the `teaqueue` command is interrupted, +it can be run again without effectively interrupting the current `ffmpeg` job. + History ======= -- cgit v1.2.3