I am trying to set a crontab task to run multiple scripts / commands over night.
I created a .bat and set it to start by running a python script.. then it should sleep a few and run other commands, then sleep and then possibly run another python script; collect logs; sleep; ect..
"C:\Python310\python.exe" "C:\Users\[name]\Desktop\Scripts\quick_test1.py" sleep 200; adb -s [IP address] shell "sendevent /dev/input/event6 4 4 787201;sendevent /dev/input/event6 1 240 1;sendevent /dev/input/event6 0 0 0;sendevent /dev/input/event6 4 4 787201;sendevent /dev/input/event6 1 240 0;sendevent /dev/input/event6 0 0 0"; sleep 30; uptime -p; sleep 10; "sendevent /dev/input/event6 4 4 787201;sendevent /dev/input/event6 1 240 1;sendevent /dev/input/event6 0 0 0;sendevent /dev/input/event6 4 4 787201;sendevent /dev/input/event6 1 240 0;sendevent /dev/input/event6 0 0 0"; sleep 10; "sendevent /dev/input/event6 4 4 787201;sendevent /dev/input/event6 1 240 1;sendevent /dev/input/event6 0 0 0;sendevent /dev/input/event6 4 4 787201;sendevent /dev/input/event6 1 240 0;sendevent /dev/input/event6 0 0 0"; sleep 10; C:\Python310\python.exe" "C:\Users\[name]\Desktop\Scripts\quick_test2.py"; sleep 10; [collect logs cmd here]; exit
Is this possible or is there another way to achieve this ? I'm using windows command prompt for now, but will be using this on a linux system later to achieve the same goal. Thank you