Hey guys, trying to rotate a log using a shell script (It's necessary, I can't use logrotate for my purpose unfortunately). So I've writted the shell script and tested it to see it works fine when manually executed.
So now I want to add it to run with the daily Cron, but I can't figure out how to do it. If I do crontab -e it opens it up for editing, I edit it and close it to see it says "no crontab for root - using an empty one", and then notice it has not made the changes.
I have also tried doing it through Webmin but it wants me to input the command there which I assume isn't right for what I want as the script is multiple lines long?
Basically, how do I add my .sh file to the daily Cron with the above problems?
Thanks!
So now I want to add it to run with the daily Cron, but I can't figure out how to do it. If I do crontab -e it opens it up for editing, I edit it and close it to see it says "no crontab for root - using an empty one", and then notice it has not made the changes.
I have also tried doing it through Webmin but it wants me to input the command there which I assume isn't right for what I want as the script is multiple lines long?
Basically, how do I add my .sh file to the daily Cron with the above problems?
Thanks!
Last edited: