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 Cron job - what am I doing wrong? in the Shared & Semi-Dedicated forum
I try to make a cronjob. Every two hours a file has to be called. The file is http://www.kapingamarangi.be/PATH/ac...n&name=PostMan So I submitted the folowing cronjob: ...

  1. #1
    JPC Member
    Join Date
    Mar 2002
    Posts
    1

    Cron job - what am I doing wrong?

    I try to make a cronjob. Every two hours a file has to be called.

    The file is http://www.kapingamarangi.be/PATH/ac...n&name=PostMan

    So I submitted the folowing cronjob:

    0 */2 * * * GET http://www.kapingamarangi.be/PATH/ac...n&name=PostMan

    And PATH is the correct path. But it doesn't seem to work

    What am I doing wrong?

  2. #2
    Friendly rainboy's Avatar
    Join Date
    Apr 2006
    Location
    Eindhoven, The Netherlands
    Posts
    546
    First of all make sure you include the path to GET in the statement (just to be sure the cron-user-id you run this under can find GET. (remember that cron is a daemon, and thus running as such under your userid, the path may be different as your shell).

    Second of all, make sure you send the output to a logfile (you don't want an email to your userid everytime some output comes from that..

    Hope this helps.

    Kind regards,
    Patrick

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
  •