INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Quit if in use  (Read 786 times)

benn600

  • Citizen of the Universe
  • *****
  • Posts: 3849
  • Living: Santa Monica CA Hometown: Cedar Rapids IA
Quit if in use
« on: December 17, 2007, 08:58:43 pm »

I would utilize a new feature of simply adding an "Exit" button to the read-only database message.  If I see that MC is open on another computer with my database, I'd like to stop opening MC, close it myself, and then open again.  Now, I have to wait for it to copy the database and then manually close after the delay.
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Quit if in use
« Reply #1 on: December 17, 2007, 10:36:39 pm »

Write a script which checks for the existence of "lock.jmd" in the db folder before starting MC. If it exists, you can just have the script quit out. If it doesn't, let MC do it's thing..
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation
Pages: [1]   Go Up