CBFalconer <cbfalconer@yahoo.comwrites:
Quote:
lak wrote:
Quote:
>i want to write a program that implement tail and tail -f command
>in unix. can any one help me in this?
>
Yes. At the prompt, type "tail <filename>" (or "tail -f
<filename>"). "which tail" and "man tail" may also be of
interest. This is off-topic in c.l.c.
Oh, come on. Since he posted in comp.lang.c, we can assume he wants
to write a C program.
Implementing "tail" in standard C is a fairly interesting problem.
"tail -f" can't be reasonably implemented in purely standard C.
The real problem, of course, is that we discussed this at some length
just a few days ago.
--
Keith Thompson (The_Other_Keith)
kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"