|
|
Just follow these steps:
- In Terminal:
crontab -e.
- Press i to go into vim's insert mode.
Type your cron job, for example:
30 * * * * /usr/bin/curl --silent --compressed http://example.com/crawlink.php
Press Esc to exit vim's insert mode.
- Type ZZ to exit vim (must be capital letters).
- You should see the following message:
crontab: installing new crontab. You can verify the crontab file by using crontab -l.
Note however that this might not work depending on the content of your ~/.vimrc file.
|
from : http://stackoverflow.com/questions/15395479/why-ive-got-no-crontab-entry-on-os-x-when-using-vim
沒有留言:
張貼留言