3 Replies - 671 Views - Last Post: 09 January 2013 - 10:37 AM

#1 g37752  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 195
  • Joined: 24-July 12

cron job does not run?

Posted 06 January 2013 - 09:37 PM

on centOS 6.2, i use crontab -e to create a cron job.

*/1 * * * * php /home/siteid/public_html/test.php>/home/siteid/public_html/test.log


this works fine.

in SSH, i do a date, and it shows 04:29 1/7 as the current time.

I change the above line to:

31 4 7 1 * php /home/siteid/public_html/test.php>/home/siteid/public_html/test.log


and it does not work?

This post has been edited by g37752: 06 January 2013 - 09:40 PM


Is This A Good Question/Topic? 0
  • +

Replies To: cron job does not run?

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5182
  • View blog
  • Posts: 26,890
  • Joined: 10-May 07

Re: cron job does not run?

Posted 06 January 2013 - 10:43 PM

** Moved to Computer Support -> Software Support -> Linux, Unix, OSx **
Was This Post Helpful? 0
  • +
  • -

#3 g37752  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 195
  • Joined: 24-July 12

Re: cron job does not run?

Posted 07 January 2013 - 10:13 AM

anybody?
Was This Post Helpful? 0
  • +
  • -

#4 Gorian  Icon User is offline

  • ninja DIC
  • member icon

Reputation: 120
  • View blog
  • Posts: 1,681
  • Joined: 28-June 08

Re: cron job does not run?

Posted 09 January 2013 - 10:37 AM

g37752, please be patient, sometimes it takes bit for people to answer on this forum.

With that said, have you tried running your command manually before inserting it into cron? What is the result?

This post has been edited by Gorian: 09 January 2013 - 10:37 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1