Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Double trouble

From: g:santilli:tiscalinet:it at: 23-Jun-2001 14:35

Hello [Sanghabum--aol--com]! On 22-Giu-01, you wrote: S> Can anyone suggest a Rebol method (i.e. as far as possible S> OS-independent) way of my application detecting if there is S> already an instance of it running on the machine? Just an idea: ; at the start of the script if error? try [make-dir %temp-dir] [ alert "Please close other instance first" halt ] ; rest of the script ; just before quitting... delete %temp-dir (If Windows's TCP stack wasn't completely broken, you could have simply opened a listen port instead...) Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/