diff options
Diffstat (limited to 'worker_examples')
-rwxr-xr-x | worker_examples/echo_sleep.sh | 5 | ||||
-rw-r--r-- | worker_examples/remote_transcode.sh | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/worker_examples/echo_sleep.sh b/worker_examples/echo_sleep.sh new file mode 100755 index 0000000..7f76c0e --- /dev/null +++ b/worker_examples/echo_sleep.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +line="$(cat)" +echo "Printing line '$line' and sleeping $1 seconds" +sleep $1 diff --git a/worker_examples/remote_transcode.sh b/worker_examples/remote_transcode.sh new file mode 100644 index 0000000..f408731 --- /dev/null +++ b/worker_examples/remote_transcode.sh @@ -0,0 +1,6 @@ +#!/bin/sh +filename="$(cat)" +echo "Downloading file..." +scp remote:"$filename" . +ffmpeg $(basename $filename) -o out/$(basename $filename) +scp out/$(basename $filename) remote:out/ |