On Sun, May 22, 2005 at 05:48:09AM -0700, [EMAIL PROTECTED] wrote:
> I've got this script which looks something like this:
>
> but when i run concentrate; it waits for 2 seconds and then prints
> concentrate
> Concentrating has been reset
>
> I was trying to get
> concentrate
> -2 second pause/delay
> Concentrating has been reset.
>
> Any ideas on that one.
Your code looks fine to me - it's probably just that STDOUT isn't set to
autoflush so your output's being buffered. Stick "$| = 1" at the top of
your script to unbuffer STDOUT and see if it works then (or use warn instead
of print since STDERR is unbuffered by default).
--
Matt S Trout Website: http://www.shadowcatsystems.co.uk
Technical Director E-mail: mst (at) shadowcatsystems.co.uk
Shadowcat Systems Ltd.