Hello, me again. Sorry for flooding the board, but I can’t seem to find the answer to this problem, and I guess it might be useful to others too.
Can cron jobs be added without using dietpi-cron?
The options there are a little limited, and since I need to run a script every 5 minutes, this can’t be done using dietpi-cron.
I tried with ‘crontab -e’ as I’m used to do this with Linux Mint. Would it work?
Of course it says there is no crontab for root so it opens an empty one.
So, basically, my question is: can cron jobs be set outside dietpi-cron and its limitations? And if so, would ‘crontab -e’ work for this or should the approach to be taken be different?
Since I haven’t received any replies, I tried setting up a few cron commands after giving the ‘crontab -e’ command, and I can now desume that this is not working.
Any suggestions to overcome this limitation? I need to run a script every few seconds…
Thanks
Yes, I know about this solution, but as I said before, I need to run a script every few seconds, therefore putting the script in the /etc/cron.hourly directory wouldn’t make it run with the needed frequency…
first at all, thanks for your help, really appreciate it. I know I’m running the script to review the files older than 2 days, this is not the problem. The crontab is not running, even the other line “01 1,5,9,13,17,21 * * * /root/wg++/update.sh” (execute script every 4 hours), I can restart the process but is the same, not sure if I can review some log.
thanks
UPDATE
I re-write the cron file and now is working, maybe some character was there. Thanks for your help