[Ilugc] One Day One Command

  • From: andyetitmoves@xxxxxxxxx (Ramkumar R)
  • Date: Mon Jan 31 17:56:21 2005

that reminds me of one problem I had faced earlier...just wanted some
opinion in this regard...which is the best place to start commands by
root on behalf of some other user who starts a X session...found some
place for gdm (/etc/X11/gdm/PostLogin/Default)...but is there a more
generic/better solution ?

it moves on...

On Mon, 31 Jan 2005 17:43:29 +0530, Ramkumar R <andyetitmoves@xxxxxxxxx> wrote:

xtail in fact does the monitoring job better by providing for
monitoring multiple files...pipe it (or for that matter even tail -f)
through osd_cat (a sample program in the xosd distribution - a cool
library for displaying stuff like it appears in the osd
displays...like say, the volume display on your tv)...you will never
miss any important notification...provided you are running X...

it moves on...

On Mon, 31 Jan 2005 14:36:44 +0530 (IST), Bharathi S
<sbharathi@xxxxxxxxxxxxx> wrote:
One Day One Command :-
====================

tail - Output the last part of files.

Summary :

Print  the  last  10  lines of each FILE to stdout.
With more than one FILE, precede each with a header
giving the file name.

Examples :

$ tail midas.txt -- Show only the last 10 Lines.

$ tail f1 f2 -- Show the last 10 lines of 2 files
                with small header.

$ tail -vn 5 myfile -- Show only last 5 Lines with
                       header.

$ tail -c 12 myfile -- Show only last 12 Bytes.

$ tail -q myfile -- Don't show headers.

$ tail --retry myfile -- Keep retrying to open myfile.

$ tail -f maillog -- Output appended data as the file
                     grows. Useful to monitor logs.

$ tail -f -s 10 maillog -- Once in every 10s update the
                           output.

$ tail -f --pid=200 myfile -- Terminate tail after PID
                              (200) dies.

Read : man tail

Bye :)
--
Bharathi S

_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



--
An expert is a person who has made all the mistakes
     that can be made in a very narrow field.
                                                    - Niels Bohr



-- 
An expert is a person who has made all the mistakes
     that can be made in a very narrow field.
                                                    - Niels Bohr

Other related posts: