Answer the question
In order to leave comments, you need to log in
How to adapt a bash script to restart many similar programs?
Hello!
There is a sh-script with the following content:
#!/bin/sh
until ffmpeg -i rtsp://............................ blablabla.mp4 ; do
echo "restarting ffmpeg command..."
sleep 2
done
Answer the question
In order to leave comments, you need to log in
You need a script with parameters.
#!/bin/sh
until ffmpeg -i rtsp://$1 ; do
echo "restarting ffmpeg command..."
sleep 2
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question