I am trying to run a program that runs this line of code in
screen livestream_dl -u "..." "..."
And it then starts a process of checking if an Instagram Live video is being active then Downloads it if it can find it and if not the screen terminates.
My issue is I have placed this into the cron job by adding this
*/1 * * * * screen livestream_dl "name" "igname" -p "pass"
Firstly, should I leave it as screen or without screen which would work to get the result if I were to do the same through SSH command line
Secondly, how can I improve this cron job to make sure if the Cronjob is already running then to ignore the command and check again in a minute?
Thanks very much! :)