[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IPTraf PID



"pgrep iptraf" should work on Linux (Red Hat).

--- Vladimir

--------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         vladimir@acm.org
Palo Alto, CA 94306-2447                                 +1 650 678 8014

"PD" == Paul Dean <paul@thecave.cantech.net.au> writes:

  PD> Hya list,

  PD> Just wondering if "process ID" handling is going to be added to the
  PD> program.

  PD> This would make it so much easier to run IPTraf as a daemon, as it has
  PD> the functionality already to do so.

  PD> Having a "/var/run/iptraf/iptraf.pid" file in which you could "cat",
  PD> then you run logrotate and parse the log file very easily via perl or
  PD> something.

  PD> Yes this can be done via a script anyway, but it's just a bit of a pain
  PD> to do a "ps x |grep iptraf" and then fiddle with the output to get your
  PD> pid.

  PD> Thanks...

  PD> -- 
  PD> Paul...

  PD> /***** Experience is that marvelous thing that enables you to 
  PD>   recognize a mistake when you make it again. 
  PD>   -- Franklin P. Jones *****/

  PD> /*****All programmers are playwrights and all computers are lousy actors.
  PD>             -- Unknown*****/

  PD> /* How smart are Computers? They seem to need instructions all the time... 
  PD>   -- Me */