LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-20-2010, 03:20 PM   #1
hsnasi
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Tshark command


Hi ,
i want to use tshark to save captured data ..
i want it to save it in a certain directory and every x seconds and 5 files so every x seconds Tshark saves another 5 files .

thanks
 
Old 01-20-2010, 05:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
another 5? Is this a ring buffer you're after? If that is the case, you'd use the -b option, with a duration option of 1. "tshark <otheroptions> -b duration=X,files=5" check man tshark for further information.
 
Old 01-20-2010, 05:11 PM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,082

Rep: Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714
Quote:
Originally Posted by hsnasi View Post
Hi ,
i want to use tshark to save captured data ..
i want it to save it in a certain directory and every x seconds and 5 files so every x seconds Tshark saves another 5 files .
thanks
Ok, so write a script to do it.

Or do you have a particular problem/question?? If so, please post it, along with actual details, like WHAT the problem/question is, version/distro of Linux, etc.
 
  


Reply

Tags
tshark, wireshark


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tshark - save capture packet to txt file varun.sharma Linux - Software 5 09-17-2009 01:04 PM
tshark regular expression to filter for MX requests? kr0m3 Linux - Newbie 1 04-16-2009 07:51 AM
tshark output to file noir911 Linux - Server 1 03-25-2009 07:17 AM
tshark dump HTML page adityaj123 Linux - Networking 0 05-10-2008 02:23 PM
can i logged output of tshark as bin file? Barq Linux - General 3 03-03-2008 07:56 AM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration