Re: Sample polling program code?
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Fri, 30 Mar 2007 15:34:51 -0800
sk8terg1rl wrote:
(snip)
Ah, tail was very useful thanks.
Incidentally, while we're on topic, is there a handy Linux utility
that counts the number of lines in a file? I know vi does when you
first enter the file (something like "a_file" 12345L, 1130670C)
That would be wc, which counts lines, words, and characters.
How do you write a periodic code in Fortran, something like "do this
every 5 seconds"? I thought about an infinite do/read loop like below
but that's horribly wasteful of computer resources.
The unix system call is sleep(int seconds). I don't know
how hard that is to call from Fortran.
-- glen
.
- References:
- Re: Sample polling program code?
- From: dpb
- Re: Sample polling program code?
- From: glen herrmannsfeldt
- Re: Sample polling program code?
- Prev by Date: Re: variable content lost
- Next by Date: Re: array operations on non-conforming arrays -- do compilers catch them?
- Previous by thread: Re: Sample polling program code?
- Next by thread: Re: Sample polling program code?
- Index(es):