From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms-smtp-02-lbl.southeast.rr.com ([24.25.9.101] helo=ms-smtp-02-eri0.southeast.rr.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1CronI-00060B-00 for ; Thu, 20 Jan 2005 21:45:04 -0500 Received: from geekspeak (clt74-98-208.carolina.rr.com [24.74.98.208]) by ms-smtp-02-eri0.southeast.rr.com (8.12.10/8.12.7) with SMTP id j0L2ho4R020054 for ; Thu, 20 Jan 2005 21:43:51 -0500 (EST) Message-ID: <011901c4ff63$0a5c8fe0$6601a8c0@geekspeak> From: "Laura Eaves" To: "Speakup is a screen review system for Linux." References: Date: Thu, 20 Jan 2005 21:43:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: timer X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2005 02:45:34 -0000 why not just say sleep "$1" instead of using a for loop? Much more efficient. Take care. --le ----- Original Message ----- From: "Dawes, Stephen" To: "Speakup is a screen review system for Linux." Sent: Thursday, January 20, 2005 2:10 PM Subject: RE: timer Why not write a little script that does what you want. Basically all you are wanting is available in linux already. A little scripting, and you got what you want. The simple one for a timer to run for a period of time is simply something like #!/bin/bash for T <= %1 ; do Sleep 1; Echo $T Done Play alarm NOTE: I have used pseudo code in my example, but you get the idea I hope. The %1 is a value that you pass to the script when you call it. For example, if you want to time something for 60 seconds you put in 60 when you call the script. The sleep 1 command tells linux to sleep for 1 second before executing the next command. The play alarm at the end of my example is a generic statement that I used to show you that when the loop is done you can tell the script what to do next. Steve Dawes Phone: (403) 268-5527 Email: SDawes@calgary.ca NOTICE - This communication is intended ONLY for the use of the person or entity named above and may contain information that is confidential or legally privileged. If you are not the intended recipient named above or a person responsible for delivering messages or communications to the intended recipient, YOU ARE HEREBY NOTIFIED that any use, distribution, or copying of this communication or any of the information contained in it is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and then destroy or delete this communication, or return it to us by mail if requested by us. The City of Calgary thanks you for your attention and cooperation. _______________________________________________ Speakup mailing list Speakup@braille.uwo.ca http://speech.braille.uwo.ca/mailman/listinfo/speakup