Closed Thread
Results 1 to 9 of 9

Thread: Cron Jorbs

  1. #1
    leetmunkyking54 is offline x10Hosting Member leetmunkyking54 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    24

    Cron Jorbs

    my uh, Cron thing I think is at 60 min intervals. Idk if that is correct or not but that's what I'm getting from the .php file. I am on a free server so I can see why.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Cron Jorbs

    Code:
    /usr/bin/php /home/igor/public_html/cron_job.php >>/home/igor/public_html/log.txt 2>&1
    Where 'igor' is replaced by your cPanel username and you adjust the path for both the script to run and the log file. This way any errors or output from your script will be logged.

    The time part would be
    Code:
    0  *  *  *  *
    which will run it at :00 every hour.
    Nothing is always absolutely so.

  3. #3
    leetmunkyking54 is offline x10Hosting Member leetmunkyking54 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    24

    Thumbs up Re: Cron Jorbs

    Ok I'm sure I can probably figure that out. The oxwall forum and this one has been really cool. I still feel like a nubcake.

    I get back to you if I feel real stupid

    Before I start to do that (stupid thing), yeah I'm on the free server right now so shouldn't I wait till I go to premium in a couple days so I don't run the free server into the ground or does it not matter quite so much?

    So if I get this straight it would run every sec.? gnarly cool.

    thx man

  4. #4
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Cron Jorbs

    Hello,

    No, that cron would run every hour, on the hour.
    You'd be alright on free with that, you'll only get suspended for High Resource Usage if there's an issue. If that happens, you should be able to unsuspend yourself in the account panel, or open a ticket and someone will unsuspend you.


  5. #5
    leetmunkyking54 is offline x10Hosting Member leetmunkyking54 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    24

    Thumbs up Re: Cron Jorbs

    Well I tried trying, lol to figure it out but I'm not very sure where it is located at specifically. I'm sure I'd have to make the log.txt file probably blank. I kinda get that part but every cron.php file I look at on the server in/public_html and it doesn't have any of these areas at least not to my knowledge.

    So I could get away with running it on 1 hr on free but the forums for oxwall said something I believe about 1 min (I'm not sure, been drinkin' but I do recall something about 1min) but would that be cool on premium.

    I'm kinda a nub so if you want me to post the root of my server and then you can probably give me some hints on where to go.

    ---------- Post added at 10:43 PM ---------- Previous post was at 08:01 PM ----------

    I believe I figured it out I just punch the coordinates you guys gave me into the cron jobs on cpanel but with my info and all the green checks lit up. So I figured I did it right, right? It does seem to be running a little smoother than usual.

    Again and again thx for your help.

  6. #6
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Cron Jorbs

    No problem. If you have any further questions, don't hesitate to let us know.


  7. #7
    leetmunkyking54 is offline x10Hosting Member leetmunkyking54 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    24

    Re: Cron Jorbs

    Code:
    /usr/bin/php /home/desiredl/public_html/cron_job.php >>/home/desiredl/public_html/log.txt /null 2>&1
    So this is what I got. I got the /null part from the Oxwall forum. and I set the timer to one hour but it isn't really working I think. Because some people are logged in and they aren't even on. My friend came over and I showed him and he said that that was wierd because his computer was off.

    So I'm kinda sure I messed up somewhere, the bad part is there aren't a lot of tuts on this especially Oxwall. Which is kind of a bummer.

    This is what happened in the log.txt file.

    Status: 404 Not Found
    X-Powered-By: PHP/5.2.14
    Content-type: text/html

    No input file specified.
    Status: 404 Not Found
    X-Powered-By: PHP/5.2.14
    Content-type: text/html

    No input file specified.
    Status: 404 Not Found
    X-Powered-By: PHP/5.2.14
    Content-type: text/html

    No input file specified.
    Status: 404 Not Found
    X-Powered-By: PHP/5.2.14
    Content-type: text/html

    No input file specified.
    Status: 404 Not Found
    X-Powered-By: PHP/5.2.14
    Content-type: text/html

    No input file specified.
    Last edited by leetmunkyking54; 05-02-2011 at 10:21 PM. Reason: editing

  8. #8
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Cron Jorbs

    You have the script named cron_job.php located in your public_html directory?
    Nothing is always absolutely so.

  9. #9
    leetmunkyking54 is offline x10Hosting Member leetmunkyking54 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    24

    Smile Re: Cron Jorbs

    Oh... lol my bad. I didn't know the file structure. duh. let me try and fix that.


    Code:
    /usr/bin/php /home/desiredl/public_html/ow_system_plugins/base/bol/cron_job.php >>/home/desiredl/public_html/log.txt /null 2>&1
    Code:
    0 	* 	* 	* 	*
    Code:
    /usr/bin/php /home/desiredl/public_html/ow_plugins/notifications/bol/cron_job.php >>/home/desiredl/public_html/log.txt /null 2>&1
    Code:
    0 	* 	* 	* 	*
    I believe that should be alright unless somehow you make them into one cron job

    I jsut got my $ so I was wondering do I just sign up with the same info as i have now for premium or yeah how would that work?
    Last edited by leetmunkyking54; 05-03-2011 at 03:33 AM. Reason: editing

Closed Thread

Similar Threads

  1. Replies: 6
    Last Post: 11-14-2009, 06:38 PM
  2. Need help about cron job
    By sen01dj in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 06-22-2009, 10:39 PM
  3. Can a cron job kick off another cron job?
    By dmoneyman in forum Programming Help
    Replies: 8
    Last Post: 04-03-2009, 08:04 PM
  4. [cron problem]php-cron command not found
    By N4rk0 in forum Free Hosting
    Replies: 1
    Last Post: 01-31-2008, 11:51 AM
  5. Cron.php
    By icaroheaven in forum Ayuda Web
    Replies: 3
    Last Post: 11-24-2007, 12:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers