So I want to save some power and let the raspberry pi download my files instead of my PC which is a power monster
I want to start my downloads at 3am and pause them at 7am. I tried to use crontab but it never works
How can I do this :?
I've written a python script to do this for me but I'm not sure how to always execute it at startup or leave it running because I only use SSH. I'm not sure if it's ok to always have this script running in terms of cpu usage or other safety stuff! (it just executes wget and sends terminate signal if its 3am or 7am, I have a file on desktop which i add my links too thought ssh)
I have archlinux installed on it!
here's my crontab which doesn't work:
0 3 * * * wget -c -i /home/mename/Desktop/downloads.txt
0 7 * * * killall wget
edit:
still doesn't work, i made this job * * * * * echo "WAIT WHAT?" > /home/alarm/Desktop/Iscromwell.list
adding this to SU works (running crontab -e
with sudo) isn't this dangerous :? why doesn't it work as a normal user!?
Edit:
I moved this to Linux section as this is more Linux related now. Things got serious! I have no cron service running and i get an error trying to run it
chmod +x your_script
? With and without sudo? Did you try adding your script to root's crontab as well as your user's crontab viacrontab -e
/sudo crontab -e
? (only add the script to one of the crontabs but test both - one at a time). Add a pid file feature or some other locking mechanism to the script to prevent cron from starting multiple instances