Re: tcpdump without Terminal

From: Bruce Barnett (spamhater113+U050127231224_at_grymoire.com)
Date: 01/28/05


Date: 28 Jan 2005 04:17:32 GMT

Gnarlodious <gnarlodious@yahoo.com> writes:

> Thanks for the tip, now I am running a file:
>
> sudo nohup tcpdump -i en1 port 80 > /private/tmp/port80.log
>
> Unfortunately the application calling this file now freezes up and needs to
> be forcequit.

I'm not sure which application you are talking about, but did you try

sudo nohup tcpdump -i en1 port 80 > /private/tmp/port80.log &

Some of the versions of tcpdump I have used didn't flush the output
file if I used a "kill ". I have to terminate the tcpdump process with
        kill -1 <pid>

to make sure I got the entire packet.

> Is there a way to launch tcpdump without crashing up a process? If so, can
> the tcpdump instance be halted from the shell too?

I have NEVER seen tcpdump crash a process.

Have you used "ps" to find out what was happening?

-- 
Sending unsolicited commercial e-mail to this account incurs a fee of 
$500 per message, and acknowledges the legality of this contract.


Relevant Pages

  • Re: Managing very large files
    ... office on Friday and forgetting to kill the tcpdump process before the ... Sounds like you may want a Perl script to automate managing your ...
    (freebsd-questions)
  • Re: Anyone else having trouble with Ethereal freezing up?
    ... >> Ethereal starts, but when I try to start a capture, it just freezes. ... >> Anyone else seeing this trouble? ... I have been using tcpdump until I can figure this out, ...
    (freebsd-questions)