Find the answer to your Linux question:
Results 1 to 2 of 2
Need help from linux expert urgent I need to run few php program concurrently every 5 seconds, I had R&D on it, and know crontab unable to run in second, ...
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    1

    Run php script every 5 seconds

    Need help from linux expert urgent

    I need to run few php program concurrently every 5 seconds,
    I had R&D on it, and know crontab unable to run in second, just minutes

    Sure I had my reason to do it,
    so I hope any expert can help me on it

    I try to do it with Shell script with 'wait' statement,
    but to make few php program run concurrently,
    I need few shell script? or any better solution?

    I am newbie in linux and just work hard on it,
    really need your advice.

    Thank you very much!

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Crontab can do Second just do 0,xx minutes.
    And for shell script you can use: "sleep 5"
    But, I dont get why you want to run a PHP prog every 5 seconds.
    You can also include that in the PHP script itself?
    Or well I guess you can beter translate the script to Perl, C++ or something like that.
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...