Reply to Re: Ensure only one instance of a script is running

Your name:

Reply:


Posted by Raj Shekhar on 03/16/05 21:21

"Mikey" <frak@totalise.co.uk> writes:

>
> How about grabbing the output from `ps -ax` and looping thourhgthe results
> to see if your script is being run?

Again the problem is of atomicity. This is a multi step process

- do a ps -aux
- do a grep on the output
- start script processing

What if second script between step 1 and 2 ? That is why we need
something that is guaranteed to complete in 1 step.

--
Raj Shekhar Y! : Operations Engineer
MySQL DBA, programmer and slacker Y!IM : lunatech3007
home : http://rajshekhar.net blog : http://rajshekhar.net/blog/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация