in reply to sleep?
You can either add a $|++ to unbuffer STDOUT, or you can use the somewhat more Perlish (IMHO)
while (sleep(1)) { print "I'm going back to sleep.\n"; }
Note that this does change the logic slightly, in that the script will sleep for one second before the first print.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Guildenstern) Re: Re: sleep?
by Guildenstern (Deacon) on Mar 20, 2001 at 21:48 UTC | |
by Adam (Vicar) on Mar 21, 2001 at 00:39 UTC | |
by Guildenstern (Deacon) on Mar 21, 2001 at 01:53 UTC |