I plan on moving my server to ubuntu server from windows ... in my testing the ubuntu has performed way better than windows. Everything is setup on ubuntu just finalizing the maintenance jobs I use.
I want to be able to run a job on ubuntu only if grep comes back ok.
I want to execute the move below only if the dvr is not busy ,,, using curl http://10.0.0.106:8089/dvr | grep "busy\":false," to find when the dvr is not busy.
mv "/media/storage1/public/dvr/The Equalizer" "/media/storage2/public/dvr"