UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old April 1st, 2005, 03:53 PM
beachguy82 beachguy82 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 162 beachguy82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 17 m 55 sec
Reputation Power: 5
creating services

I have 6 perl scripts that I currently just have in an infinite loop. They constanly check a database and then perform thier actions if there is a new entry into the database. I would like to have them run as services so that I can controll how much processing power they use. They currenly use about 75% of the processor. How do I go about doing this?

Reply With Quote
  #2  
Old April 4th, 2005, 01:26 PM
gruntz gruntz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 53 gruntz User rank is Private First Class (20 - 50 Reputation Level)gruntz User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 22 h 39 m 25 sec
Reputation Power: 5
if you can make your scripts smart enough understand time stamps from either the DB records or your DB's auditing system, consider using sleep or maybe create a daemon using cron.

What about using DB procedures to execute what needs to be done.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > creating services


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway