I have a shell script that I want to run automatically every day at 08 AM, and I am not authorised to use the crontab because I don't have root permission
My home directory is /home/user1/.
Any suggestions?
I have a shell script that I want to run automatically every day at 08 AM, and I am not authorised to use the crontab because I don't have root permission
My home directory is /home/user1/.
Any suggestions?
On
Even if you dont have root permission you can set cron job. Chcek these 2 commands as user1, if you can modify it or its throwing any error.
crontab -l
If you can see then try this as well:
crontab -e
If you can open and edit, then you can run that script with cron.
by adding this line:
* 08 * * * /path/to/your/script
Ideally you should have your system administrator add your user account to
/etc/cron.allow- without that you do not have permission to use thecrontabcommand, as you probably discovered.If that is not possible, then you could use a wrapper shell script along these lines (note: untested):
You start the wrapper script in the background, or e.g. in a
screensession, and as long as it's active it will regularly execute your script. Keep in mind that:cronthere is no real accuracy w.r.t. the start time. If you care about timing to the second, then this is not the way to go.@rebootentry incrontab, but that seems to not be an option for you.cron- or it may have been an explicit decision. In the second case they might not take too well to you leaving a couple of processes overnight in order to bypass that restriction.