Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 2 of 2

This is a discussion on Need cron/time help in the Shared & Semi-Dedicated forum
I have three questions. 1) When setting up a cron job, what time am I basing it on? The forum here says the time is ...

  1. #1
    Loyal Client
    Join Date
    Aug 2002
    Posts
    269

    Need cron/time help

    I have three questions.

    1) When setting up a cron job, what time am I basing it on? The forum here says the time is based on GMT (-8 for PST), but when I post a message in my message forum, the time appears to be at Texas time (Central?). Which is it?

    2) I set the cron based on central time and it didn't appear to run. I then set it for GMT and it didn't appear to run. Is there a log or something that will show me when a cron runs or fails to run perhaps with error messages?

    3) I set up two crons because I was getting conflicting info in a different message months ago.

    0 1 * * * /home/acct/public_html/cgi-bin/script.cgi > /dev/null
    0 1 * * * http://domain.com/cgi-bin/script.cgi > /dev/null

    The 2nd one is what the cron page example shows, but in an earlier forum thread, I was told it has to be the 1st format. Which is correct?

    Thanks
    Sam

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    1. The servers are in Central time because, like you said, they are located in Texas. The time displayed in the forums can be set in the User Panel to display the time zone you are in.

    2. I believe that cron jobs are logged to the system log, but with JailShell, I doubt you'll be able to look at it.

    3. Either format will work, but you need to add "GET" to the begining of the URL version:

    0 1 * * * GET http://domain.com/cgi-bin/script.cgi > /dev/null

    Hope this helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

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
  •