LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Thread Tools
Old 11-14-2009, 12:18 AM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 152
Thanked: 0
Keep snoop running even after closing terminal


[Log in to get rid of this advertisement]
I am looking for a way to keep snoop running even when I close the terminal, I have tried with & but that closes the snoop as soon as I close the terminal
Is there a way around this? I want to take a packet capture that I at-least couple of hours long
Thanks
windows_xp_2003 the_imax is offline     Reply With Quote
Old 11-14-2009, 12:48 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 592
Thanked: 1
nohup is your friend.
windows_xp_2003 Blinker_Fluid is offline     Reply With Quote
Old 11-14-2009, 02:49 AM   #3
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 152
Thanked: 0

Original Poster
Quote:
Originally Posted by Blinker_Fluid View Post
nohup is your friend.
I had tried nohup (As mentioned below) but it did not work and data collection stopped as it closed the terminal

nohup snoop -d etg0 -o /tmp/op.cap 8080
windows_xp_2003 the_imax is offline     Reply With Quote
Old 11-14-2009, 06:19 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris, under a rock ...
Distribution: Solaris & OpenSolaris based distros, Ubuntu
Posts: 8,131
Thanked: 84
Code:
nohup snoop -d etg0 -o /tmp/op.cap port 8080 </dev/null >/dev/null 2>&1
solaris jlliagre is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
closing man pages in terminal PClOStinspace Linux - Newbie 4 06-27-2009 09:56 AM
Graceful closing of commands run in a terminal SharpyWarpy Linux - General 2 05-27-2007 09:30 AM
Fedora 6 - problem with terminal window closing immediately. bostonantifan Fedora 5 03-25-2007 08:21 PM
Closing a port in linux terminal..any command?? fhameed Linux - Security 1 07-21-2004 12:46 AM
How to make a PATH stay in the environmental variables after closing the terminal.... jmax24 Linux - General 4 04-19-2004 12:47 AM


All times are GMT -5. The time now is 08:12 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration