i want to write a program that implement tail and tail -f command in
unix.
can any one help me in this?
>
You could read the thread on this subject from last week, as Lew has
suggested.
You could more relevantly ask the question in comp.unix.progr ammer
(checking the FAQ and the archives - using Google Groups - before
posting your question would be a good thing).
>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_Keit h) 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"
>>
>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.
>
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net>
No. Using Unix like shell commands are off topic here. Since he is in a
C group I guess it's fairly obvious that he is looking for some C
guidance.
This was discussed just a short while back as you probably well know.
Download the zip archive, there are all sort of small programs,
like calc, head, tail, grep etcetera.
Beware tough, a lot of them were written for a DOS environment.
Comment