SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: crontab error

  1. #1
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tried to run crontab for the first time:

    entered this:

    ended up with this:
    Code:
    [bullets@host9 bullets]$ crontab 0 0 * * * lynx -dump http://www.loadswap.com/load_data/clean.php
    crontab: invalid option -- d
    crontab: usage error: unrecognized option
    usage:  crontab [-u user] file
            crontab [-u user] { -e | -l | -r }
                    (default operation is replace, per 1003.2)
            -e      (edit user's crontab)
            -l      (list user's crontab)
            -r      (delete user's crontab)
    And when I go to view crontab jobs... it says that there are none!

    Any ideas?

    Thanx and God Bless
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services

  2. #2
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For crontab, you set up one and save it, so basically the syntax is not like that.
    Do this:
    crontab -e <enter>
    edit the cron (it could use vi or pico, depends on the setup, if vi, press "i" then add the text you have there, if pico, the options are all at the bottom)

    exit & save (vi: ":wq" ; pico: "Ctrl-X"

    Or simpler, edit a file with that text you have, type:
    crontab filename, it will install the cron
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •