chintansshah Posted September 13, 2010 Share Posted September 13, 2010 Can you please tell me how to set crontab on every sunday night. Quote Link to comment Share on other sites More sharing options...
Adam Posted September 13, 2010 Share Posted September 13, 2010 Create a plain text file with your cron job in. For example: 0 0 * * 1 command to be executed You'll then need to use the crontab program to install the cronjob: crontab /path/to/cronjob/file You can then check the cronjob was installed successfully with: crontab -l Quote Link to comment Share on other sites More sharing options...
chintansshah Posted September 14, 2010 Author Share Posted September 14, 2010 when I gave a command, it says "bash: 0: command not found" Is it require to install crontab? and how to intall on ubuntu? Quote Link to comment Share on other sites More sharing options...
the182guy Posted September 14, 2010 Share Posted September 14, 2010 Use this to modify the crontab crontab -e Quote Link to comment Share on other sites More sharing options...
chintansshah Posted September 14, 2010 Author Share Posted September 14, 2010 it gives below output. no crontab for root - using an empty one Select an editor. To change later, run 'select-editor'. 1. /usr/bin/vim.tiny 2. /bin/ed 3. /bin/nano <---- easiest 4. /usr/bin/vim.basic Quote Link to comment Share on other sites More sharing options...
trq Posted September 14, 2010 Share Posted September 14, 2010 So, select an editor to use to edit your crontab file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.