rtmpdump and batch commands...
Hi guys,
I have some questions about batch.So I wanna create a little script where I have stored some rtmp links of the same channel (three or more for exsample) and now if I run the batch script then it starts to check the first rtmp link (all ok so far) and does execute the player too.The problem I have is that not all links will checked directly one after another so I have each time to exit the player before the batch script works go on.Lets say there are 4 links to check and the first three are not working at the moment then I have to close the player three times so this I wanna prevent to do manually so that the script does do it automatically you know.
The next question I have is: Is there a command I can use to set a time limit command in the script to check a link?So checking some channels does take mostly a longer time by rtmpdump (20 seconds+) before rtmpdump has ended the check or cleanup (ctrl+c) etc and here I wanna set a check time limit so that rtmpdump does check the link for 5 seconds for exsample and if the link was not loaded successfully in this time limit then the batch script should skip it and jump to next link to check.
Maybe you have some ideas whether its possible to do this via some batch commands etc.
greetz
|