Jump to content

[SOLVED] cronjob question


affordit

Recommended Posts

From what I read a cronjob will run automatically based on what I specify in the file is that right?

If it is, is there somewhere special that the job should be placed in my directory so that it will be executed or what. I have some code I would like to run everyday but I am not sure where to put them to make it happen. Can someone point me in the right direction Please.

 

Thanks in advance.

Link to comment
Share on other sites

If you have cPanel - Advanced > Cron Jobs > Experience Level > Standard

 

Command to run:

/usr/local/bin/php -q /home/veraci7y/public_html/folder/cron/script.php

...for example. Then just choose the times and what-not.

 

If you don't have cPanel, then I don't know. :D

Link to comment
Share on other sites

u can always check where yer scripts are

<?php
   header("Content-type: text/plain");
   echo "working path: ". get_cwd();
   echo "php path: ". system("find php");
?>

 

this shud work fine in linux environments, windows will fail on the find php command.

Link to comment
Share on other sites

Well I guess that solves that this is what I found:

 

cron job

A cron job is a command available to Unix system users that makes possible the automated execution of a task at predefined time intervals. One might set up a cron job to create hourly backups of a database, for example, or to send daily emails. Yahoo! currently does not support the use of cron jobs, but we hope to offer this feature with your plan in the future.

 

Is there another way to run this script at regular intervals?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.