From owner-freebsd-questions Sun May 10 19:51:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA23598 for freebsd-questions-outgoing; Sun, 10 May 1998 19:51:30 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mutsgo.kf7nn.com (mutsgo.kf7nn.com [204.251.27.213]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA23590 for ; Sun, 10 May 1998 19:51:22 -0700 (PDT) (envelope-from kf7nn@mutsgo.kf7nn.com) Received: (from kf7nn@localhost) by mutsgo.kf7nn.com (8.8.8/8.8.7) id VAA01245; Sun, 10 May 1998 21:51:07 -0500 (CDT) (envelope-from kf7nn) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sun, 10 May 1998 21:42:02 -0500 (CDT) From: kf7nn@kf7nn.com To: Doug White , questions@FreeBSD.ORG Subject: Re: cqcam script Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? should i use perl or a shell script? I did write a small script that started out with something like !#/usr/bin/perl if blah /usr/local/program /usr/local/anotherprogram /usr/bin/program3 fi that is my whole extent to programming although if it was 68xx assembly then I could do wonders...I love talking directly to hardware. On 10-May-98 Doug White wrote: >On Sun, 10 May 1998 kf7nn@kf7nn.com wrote: > >> I use cqcam to take a picture from my connectix >> quickcam every minute via cron job but i would >> like to make a script that does it via a web page. >> >> what would be the easiest way to do this? > >Make your script a cgi-bin. You will want to use a lockfile so you don't >have five or six of these trying to take pictures at once, which could >have some .. interesting .. results. > >Also watch for DoS attacks by repeatedly hitting the button -- grabbing >from qcams taxes the system pretty hard (at last check and using the >kernel qcam driver). > >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: 21:42:09 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message