Jump to content


Photo

Using CRON


  • Please log in to reply
7 replies to this topic

#1 Avalanche

Avalanche
  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts

Posted 20 April 2003 - 12:46 AM

How exactly do I use cron? I don\'t understand how it works, really at all... I think that this would run /scripts/restock every 10 minutes:
10 * * * * * /scripts/restock

20 * * * * * /scripts/restock

30 * * * * * /scripts/restock

40 * * * * * /scripts/restock

50 * * * * * /scripts/restock

60 * * * * * /scripts/restock
but I don\'t know where to put that or anything of the such.

Thanks.
DEFINE("YOU","Spending Too Much Time On The Computer");

#2 Coastie

Coastie
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 20 April 2003 - 01:00 AM

you have 1 to many *


10 * * * * /scripts/restock

#3 Avalanche

Avalanche
  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts

Posted 20 April 2003 - 01:18 AM

Okay, thanks. And where exactly do I use this?
DEFINE("YOU","Spending Too Much Time On The Computer");

#4 Coastie

Coastie
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 20 April 2003 - 01:21 AM

I have no idea.

#5 Avalanche

Avalanche
  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts

Posted 20 April 2003 - 01:22 AM

Lol, thanks for the info, anyway.
DEFINE("YOU","Spending Too Much Time On The Computer");

#6 Coastie

Coastie
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 20 April 2003 - 01:52 AM

I thought that script in your sig is what you were referring to.

log in as the user you want to run the script as, and type crontab -e

that will open the users crontab in the default editor, probably vi

add your lines in there.

#7 Avalanche

Avalanche
  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts

Posted 20 April 2003 - 03:21 AM

I don\'t use PuTTY, sorry. I use PHPMyAdmin and a website on a hosted machine.
DEFINE("YOU","Spending Too Much Time On The Computer");

#8 Coastie

Coastie
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 20 April 2003 - 11:33 AM

you need to set up cron jobs from a shell, so you will need to have your host set it up for you.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users