Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Creating a crontab .. this right?
Results 1 to 2 of 2

Thread: Creating a crontab .. this right?

  1. #1

    Creating a crontab .. this right?


    *3 23 * * * cd /home/jciind/WWW/stats/; perl awstats.pl -update
    -config=www.jciind.com

    Basically i want it to run at 3am everyday. i want it to go to the /home/jciind/WWW/stats folder and run that perl command.

    is this right?

    thank you
    Anthony

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Creating a crontab .. this right?

    Just want to make sure ( hard to tell sometimes ) that you need to write like

    * <space> 3 <space> * <space> * <space>

    And it looks like your script is going to run 3 AM of 23rd. day of every month. If you want it everyday then, it should be like,

    Code:
    * 3 * * * * <your code>

Similar Threads

  1. Crontab - Scheduling tasks.
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 05:35 AM
  2. Need help with crontab
    By montejr in forum Linux - General Topics
    Replies: 1
    Last Post: 11-25-2003, 10:50 PM
  3. Crontab not working
    By mcdougrs in forum Linux - General Topics
    Replies: 9
    Last Post: 09-14-2002, 03:47 PM
  4. Crontab - Scheduling tasks.
    By pbharris in forum Linux - General Topics
    Replies: 2
    Last Post: 07-16-2002, 06:46 PM
  5. setting up "crontab" : ?
    By nusjunkie in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 06-18-2002, 03:00 PM

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
  •