Recently I’m trying to create a routine with CRONTAB to execute, every 1 hour, 2 commands a with privileges; 0 * * * * sudo sync & sudo sysctl vm.drop_caches=3
The problem I’m facing is that…
I edit the file with the command; crontab -e
Saved, but the commands are not executed.
And I’m having trouble creating with; sudo crontab -e
Because of the editor that is shown to me, I have no idea how to save the file, in addition to the difficulty in editing the text.
I’m not sure if what you are trying is going to help, but in any case, if you are going to do it, don’t use cron with your user, use cron with root. That way you don’t need sudo
Eventually my system has a completely black screen, the sound keeps coming out, but the system is locked (I check by activating/deactivating NumLock and the light does not turn off).
In fact, the Swap memory is set to 0, could that be the problem?