Jump to content

cron tab alternatives?


freelance84

Recommended Posts

 

I may need an alternative to cron to get some scripts on my site running automatically to remove unwanted mysql entries.

 

I've google it and there seems to be a few, one being http://sourceforge.net/projects/pinc/files/

 

Does anyone know of any others or had experience with them?

 

If not, would there be a way of starting a script on the server which ran all the way to the bottom, paused for a minute then hit a header which was back to its self, thus causing an infinite loop until something changed?

Link to comment
Share on other sites

But how would i keep the script going. Surely If i turn off the computer which started the script the script would stop?

 

Well yes.  There is no script or app that will continue when you turn of the computer.  :confused:

 

If you mean how to start back up when the computer boots, then that depends on the OS.  Linux you put it in /etc/init.d/ or wherever and Windows you put it in startup.

Link to comment
Share on other sites

Yea, thanks. But after talking it over with a friend, I've decided to build in a work around so i don't need the script to run automatically.

 

Instead I'm going to wait until my host installs MySQL 5.1 as apparently this has some event scheduling functions which eliminate the need for me to use cron.

 

I am very new to this world of php...etc but it seems there is a need a more localised version of cron. One which is private and unique to each user on a server. A little like .htaccess maybe,  one which people can write to but it will only control the contents of their directories on the server/ host.

Link to comment
Share on other sites

Yea, thanks. But after talking it over with a friend, I've decided to build in a work around so i don't need the script to run automatically.

 

Instead I'm going to wait until my host installs MySQL 5.1 as apparently this has some event scheduling functions which eliminate the need for me to use cron.

 

I am very new to this world of php...etc but it seems there is a need a more localised version of cron. One which is private and unique to each user on a server. A little like .htaccess maybe,  one which people can write to but it will only control the contents of their directories on the server/ host.

 

That is crontab.  If you type crontab -e it will allow you to edit only your crontab and your cron entries will be run as your uid with only the permissions of your uid.  Of course if you do this as root, then you are editing root's crontab.

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.