I love being surprised by learning something that my brain is ready for but that I wasn't expecting or looking to learn. In the past I've used a file mechanism when needing to lock out another instance. The shell() and socket ideas are far enough outside my comfort zone that I wouldn't have looked for a solution there. Thanks for the poke in the brain.

Scott Morrow
Elementary Software
(Now with 20% less chalk dust!)

On May 23, 2009, at 6:33 AM, Bernard Devlin wrote:

Peter, you could also use shell() to parse the output of the ps command to check if your application is already running...<snip>

Bernard

Or you can open a server socket on a fixed port, and quit if you fail to grab that port... <snip>

Jan Schenkel

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to