On Tue, Sep 14, 2010 at 12:25 PM, viraj <kalinga@xxxxxxxxx> wrote: > got another idea.. setup the database on a machine which can detect > the availability of the boss. if the boss machine is on.. and > connected to network.. the script will try to verify the availability > of the bosses's ip and interface hardware address. (if the boss change > the nic or machine, mac has to be updated manually in the script) and > starts or stops the database. > > this can be done with bit of shellexec and bit of shellscripting, if > on linux with 'arp' (all employees and boss has to be in same subnet i > guess.. ) and yeah, the script has to be run at some reasonable time interval using a cron ~viraj > > ~viraj > > On Tue, Sep 14, 2010 at 7:17 AM, Andy McKenzie <amckenzie4@xxxxxxxxx> wrote: >> On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse <mickyhulse.lists@xxxxxxxxx> wrote: >>> On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown <danbrown@xxxxxxx> wrote: >>>> It would be cheaper to employ the same method used on some >>>> lawnmowers and required on Jet Skis and Skidoos: a cable with a clip >>>> worn by the rider. The rider falls off, the cable releases from the >>>> vehicle, disengaging the throttle and cutting the engine. The boss >>>> stands up, his entire infrastructure collapses, everyone's connections >>>> are closed, and all PCs subsequently catch fire. >>> >>> Lol! That would make a great Dilbert and/or Farside cartoon. :) >> >> >> It would, wouldn't it? >> >> Anyway. Something you could do is a script that turns mysqld on and >> off: set him up with an SSH connection to the server, and he can run >> the script when he gets in to turn it on, and run it again whenever he >> leaves to turn it off. A cron job to turn mysqld off at whatever time >> he usually leaves would probably be a reasonable failsafe. If he >> really wants you could probably link it to a swipe card system or just >> a keyboard on his desk (enter your PIN to turn it on, enter it again >> to turn it off). >> >> All that aside, I can't help feeling that this has gotten into "I'm >> afraid you know too much for us to let you leave: Guards! Take him >> away!" territory. >> >> -Alex >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php