chintansshah Posted September 13, 2010 Share Posted September 13, 2010 Can you please tell me how to set crontab on every sunday night. Link to comment https://forums.phpfreaks.com/topic/213282-how-to-set-crontab-every-week/ 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 Link to comment https://forums.phpfreaks.com/topic/213282-how-to-set-crontab-every-week/#findComment-1110526 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? Link to comment https://forums.phpfreaks.com/topic/213282-how-to-set-crontab-every-week/#findComment-1110849 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 Link to comment https://forums.phpfreaks.com/topic/213282-how-to-set-crontab-every-week/#findComment-1110871 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 Link to comment https://forums.phpfreaks.com/topic/213282-how-to-set-crontab-every-week/#findComment-1110881 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. Link to comment https://forums.phpfreaks.com/topic/213282-how-to-set-crontab-every-week/#findComment-1110883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.