implementing tail command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lak

    #1

    implementing tail command

    i want to write a program that implement tail and tail -f command in
    unix.
    can any one help me in this?

  • Lew Pitcher

    #2
    Re: implementing tail command

    On Sep 24, 8:56 am, lak <lakindi...@gma il.comwrote:
    i want to write a program that implement tail and tail -f command in
    unix.
    can any one help me in this?
    You might want to (re)read the comp.lang.c thread from last week that
    asked this very question.

    Lew

    Comment

    • Mark Bluemel

      #3
      Re: implementing tail command

      lak wrote:
      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).

      Comment

      • CBFalconer

        #4
        Re: implementing tail command

        lak wrote:
        >
        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>



        --
        Posted via a free Usenet account from http://www.teranews.com

        Comment

        • Keith Thompson

          #5
          Re: implementing tail command

          CBFalconer <cbfalconer@yah oo.comwrites:
          lak wrote:
          >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"

          Comment

          • Richard

            #6
            Re: implementing tail command

            CBFalconer <cbfalconer@yah oo.comwrites:
            lak wrote:
            >>
            >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.



            or

            http://tinyurl.com/3xspy5

            Your multiple signatures are still disrupting auto-snipping FYI.

            Comment

            • Sjouke Burry

              #7
              Re: implementing tail command

              lak wrote:
              i want to write a program that implement tail and tail -f command in
              unix.
              can any one help me in this?
              >
              Something useful for beginners:


              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

              Working...