Crontab issue, 2 questions

Discussion in 'Installation/Configuration' started by jang, Sep 19, 2006.

  1. jang

    jang New Member

    Hi,

    I have a ISPconfig on a Ubuntu server based on the How to Perfect Setup tutorials.

    When I do crontab -e it opens up in Midnight Commander (great for filebrowsing), but I want it to open in the VI-editor:
    How do I change the setting?

    Since it is not supported from the ISPConfig admin screens:
    What is the best place to put my own daily crontab jobs for my websites?
    (www.site.com/update.php etc) (in the ISP crontab or the etc/cron.daily?)
    and how should I configure it.

    Thanks,

    Jang
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Do this:

    Code:
    rm -f /etc/alternatives/editor
    ln -s /usr/bin/vi /etc/alternatives/editor
    You can either put a shell script in /etc/cron.daily, it will be called everyday between 6.00h and 7.00h in the morning, or you run
    Code:
    crontab -e
    and put your cron job there (which gives you more flexibility as to when you want to run it).
     
  3. jang

    jang New Member

    It took me a while but i already did it like this:

    update-alternatives --config editor

    and edited the crontab -e like you suggested.

    Thx,

    Jang
     

Share This Page