Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Set cron jobs

  1. #1
    New Coder
    Join Date
    Sep 2010
    Location
    India
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Set cron jobs

    Hi everyone, I am using centos 64 bit which is running 2 wordpress sites,
    In that sites I am using WP-Robot plugins which is used to do autoposting,

    For that I want to set cron jobs, I don't know how to do it,
    I am having ssh access but no cpanel,
    How do I set the cron jobs for regular 6 hrs as interval?


  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Login to the user for that site and do:
    Code:
    crontab -e
    Then add something like this:
    Code:
    *	*/6	*	*	*	php -f /path/to/file.php
    Save & exit the editor to complete the update.

  • #3
    New Coder
    Join Date
    Sep 2010
    Location
    India
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Quote Originally Posted by Inigoesdr View Post
    Login to the user for that site and do:
    Code:
    crontab -e
    Then add something like this:
    Code:
    *	*/6	*	*	*	php -f /path/to/file.php
    Save & exit the editor to complete the update.
    Hey
    I am doing something like this,
    In my VPS I have two sites, and only one ssh login user for both,
    after accessing ssh, in root directory I typed
    Code:
    crontab -e
    But it comes as
    no crontab for username - using an empty one
    Further I didn't added anything, am I doing right?
    and in this code:
    Code:
    *	*/6	*	*	*	php -f /path/to/file.php
    what does path to the php file means? which File ?

    Thanks for your reply


  •  

    Tags for this Thread

    Posting Permissions

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