Hello all, i am realatively new to this type of programming on Mac, and need some help...
here is the story:
I have a script to record streams with rtmpdump.
As it refer to 3 different channels, i have made 3 scripts, one for each channel.
I run each of them from the terminal, and in the script i have set a variable in the name of the output file that is the date and timing of the begin of the recording.
What i want to add to this script is:
a piece of code that check the file size of the file being recorded.
The check should be done every 5 minutes.
If the file is not increasing in size, then restart the script.
To run these script when i am not at home, i also need to know what is the best solution:
An application to schedule task?
another script to run the day of the recording, with instructions on the hour to start?
...
will you point me to the right directions in order to achieve this?
thanks in advance for your help!
here is the story:
I have a script to record streams with rtmpdump.
As it refer to 3 different channels, i have made 3 scripts, one for each channel.
I run each of them from the terminal, and in the script i have set a variable in the name of the output file that is the date and timing of the begin of the recording.
What i want to add to this script is:
a piece of code that check the file size of the file being recorded.
The check should be done every 5 minutes.
If the file is not increasing in size, then restart the script.
To run these script when i am not at home, i also need to know what is the best solution:
An application to schedule task?
another script to run the day of the recording, with instructions on the hour to start?
...
will you point me to the right directions in order to achieve this?
thanks in advance for your help!