Jump to content


Photo

[Linux commands] I have no Idea.


  • Please log in to reply
2 replies to this topic

#1 Dobakat

Dobakat
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 01 August 2006 - 02:30 AM

Well I am a php coder and I am trying to make an Text-Based Game. Every 15 minutes every user should get +5 energy, every midnight they should be healed, and many other things that need to be done on daily, hourly, minutly, weekly bases. I found out that on my host there are Cron Jobs, that will execute a comand. Sadly for me it says that "You need to have a good knowledge of Linux commands before you can use cron jobs effectively" but I have no ideas on Linux Commands. Is it posible that through this Cron Jobs using Linux Commands execute a .php file? In this file it will contain the MySql query that shall be run, depending on the time. If it is possible, can someone tell me how? Thanks.

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 01 August 2006 - 03:56 AM

Look at the tutorial in my signature.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 Dobakat

Dobakat
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 01 August 2006 - 05:26 AM

thanks, it helped.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users