Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Closed Thread
cron job to run every minute?
Old 12-01-2010, 09:39 AM cron job to run every minute?
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
Does anyone know how to get a crom job to run every minute? I'm using linux hosting
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
View Public Profile Visit audiomad's homepage!
 
 
Register now for full access!
Old 12-01-2010, 09:43 AM Re: cron job to run every minute?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
in your crontab it should look something like this:
Code:
*/1 * * * * /path/to/script/to/run
The key part is the */1 - which means once a minute
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
View Public Profile Visit wayfarer07's homepage!
 
Old 12-01-2010, 10:05 AM Re: cron job to run every minute?
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
what do you mean by cron tab?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
View Public Profile Visit audiomad's homepage!
 
Old 12-02-2010, 06:14 AM Re: cron job to run every minute?
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
A crontab is a text file that lives in a defined location on a UNIX or LINUX system. It contains lines like the one given above, controlling cron jobs.Usually only the root user can edit it, sometimes other users are given the right. If you have the root password, use crontab -e to access the file for editing. If not, contact your system administrator or hosting provider.
PaulW is offline
View Public Profile
 
Old 12-02-2010, 05:14 PM Re: cron job to run every minute?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
What he said.

If you're on a shared host, it's doubtful they will allow you to set a cron job to execute every minute. If you have a VPN or a dedicated box, however, you should be able to write your own crontab, which will allow you to make any script repeat as often as 1 minute (this is as fast as a cron job can be set to run at, however).

If you're on a shared host, your host probably has a control panel that will allow you to set cron jobs. However, you will probably be limited to hourly, daily, weekly, or monthly. You'll just need to ask them.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
View Public Profile Visit wayfarer07's homepage!
 
Old 12-02-2010, 05:36 PM Re: cron job to run every minute?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
WHY do you need something to run every minute???

Are you trying to crash the server?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 12-09-2010, 07:37 AM Re: cron job to run every minute?
CSM
CSM's Avatar
Front-End Developer

Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
Google for linux crontab... tons of explanations.

Code:
* * * * * /bin/execute/this/script.sh
runs script.sh every minute.

Code:
*/2 * * * * /bin/execute/this/script.sh
would run it every 2 minutes... etc.
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
View Public Profile Visit CSM's homepage!
 
Old 12-28-2010, 10:25 PM Re: cron job to run every minute?
Average Talker

Latest Blog Post:
phpinfo.php file on server
Posts: 18
Name: Ash
Trades: 0
It isn't hard to set a cronjob.
But, need to be careful about the purpose.
What do you want to run every minute?
What control panel do you have access to?
__________________
~Ashwini
AshwiniS is offline
View Public Profile Visit AshwiniS's homepage!
 
Closed Thread     « Reply to cron job to run every minute?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.91715 seconds with 12 queries