From: Lars S. <st...@te...> - 2006-03-20 16:46:40
|
Michael Reinelt wrote: > Hi Lars, >=20 >>Does anyone know if you can get the exec() to execute >>once only instead of doing repeated executions? >=20 > I'm afraid this is *not* possible at the moment. But this could be > easily implemented by using a 'update' value (or whatever the attribute > is called today :-) of 0 (zero). >=20 > But why the heck would one want to execute things only once??? I'm working on a software RAID-1 solution with three S-ATA disks. One of these disks will be used as backup, i.e push the button (CF635), take out the disk, put another disk in, push another button, and voil=E1, you have a complete (and bootable) backup of your system on a separate disk, whilest the new disk is now being resynced. All with a running system (hotswap, no reboot). I'm new to lcd4linux since a couple of days back, and I just have to say: great piece of software, well done! Just bought myself a CF635 display, and with lcd4linux I got it up and running in no time. I checked the mailinglist and couldn't find any plugin for /proc/mdstat, which I need in order to monitor the RAID. So I guess I'll have to write a plugin for /proc/mdstat. However, for prototyping I find the exec() function splendid. With the help of the exec() function and a simple shell-script, I have a running system where the CF635 display shows the RAID status. I even took care of stopping the underlying processes using a modified init.d script for start/stop of lcd4unix. So, in all fairness, it works well for me at least. I also got the CF635 keypad working allright, thanks to Chris's patch for this the other week. However, I'm not sure how to execute a command (once!) using the keypad. Maybe there is another way that I don't know of? If not, I guess I'll have to look in to the code. Thank you for your comments. R /LarS |