Activity Stream
48,167 MEMBERS
65481 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Banned

    Default VPS cron job

    Hi all,

    I need to run a php script, checkhosts_bot.php, on a vps.

    Anyone have the correct way to do this?

    Thanks in advance.
    Spooky Reviewed by Spooky on . VPS cron job Hi all, I need to run a php script, checkhosts_bot.php, on a vps. Anyone have the correct way to do this? Thanks in advance. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    use crontab

    to add a cronjob in ssh type
    Code: 
    crontab -e
    to remove
    Code: 
    crontab -r
    to list your current cronjobs
    Code: 
    crontab -l
    type "crontab man" in ssh for more info

    you can give a cronjob to your script like
    Code: 
    */5 * * * * /usr/bin/php /your/path/to/phpfile.php
    */5 runs every 5 minutes

    http://www.youtube.com/watch?v=jyhb8GmfSnU
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  4.     
    #3
    Banned
    Thank you very much.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cron or Pseudo-cron?
    By m1mi.dan0s in forum Webmaster Resources
    Replies: 5
    Last Post: 29th Jul 2012, 07:14 PM
  2. Help with Cron Job
    By UKInternetGroup in forum Technical Help Desk Support
    Replies: 15
    Last Post: 6th Mar 2012, 08:56 AM
  3. Need Help In Cron job
    By ::ALEX:: in forum Technical Help Desk Support
    Replies: 1
    Last Post: 26th Dec 2011, 10:33 PM
  4. Cron Job
    By Spooky in forum Web Application/Script Support
    Replies: 4
    Last Post: 9th Nov 2010, 01:22 PM
  5. Cron Job Help
    By xxenragedxx in forum Technical Help Desk Support
    Replies: 2
    Last Post: 7th Jan 2010, 11:19 AM

Tags for this Thread

BE SOCIAL