1 2 3 4 5 6
#!/bin/sh filename="$(cat)" echo "Downloading file..." scp remote:"$filename" . ffmpeg $(basename $filename) -o out/$(basename $filename) scp out/$(basename $filename) remote:out/