Date: Sun, 10 May 1998 22:46:32 -0500 (CDT) From: kf7nn@kf7nn.com To: Doug White <dwhite@resnet.uoregon.edu> Cc: questions@FreeBSD.ORG Subject: Re: cqcam script Message-ID: <XFMail.980510224700.kf7nn@kf7nn.com> In-Reply-To: <Pine.BSF.3.96.980510203943.2508J-100000@gdi.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
so what method do you suggest to lock the file? On 11-May-98 Doug White wrote: >On Sun, 10 May 1998 kf7nn@kf7nn.com wrote: > >> i never done this before so i may ask a few questions. >> >> what does locking a file mean? >> >> should i use "flock" to lock the file? > >Locking simply means to create a small flag file, like .cqcaminuse, that >keeps other instances of your CGI script from trying to use the camera >while another script is taking a picture. This assumes that the capture >application doesn't do it's own locking. When you're done taking a >picture you remove the file. > >Using flock() would probably be overkill. > >> should i use perl or a shell script? > >Whatever you prefer. > >> that is my whole extent to programming although if it was 68xx assembly >> then I could do wonders...I love talking directly to hardware. > >If you like fiddling with hardware then you should be doing device >drivers. :-) You don't have total control of the CPU with UNIX, so you >can't code direct assembly since you could leave the CPU in an >inconsistent state if, say, a disk access completes and interrupts your >process. There is gas, which is assembly like you've never seen it. > >Doug White | University of Oregon >Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant >http://gladstone.uoregon.edu/~dwhite | Computer Science Major > > ---------------------------------- E-Mail: kf7nn@kf7nn.com Date: 10-May-98 Time: 22:46:35 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980510224700.kf7nn>