LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 09-22-2005, 02:52 AM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
Runing commands in the background


Hi,

I am connected with my laptopthrow ssh client to a linux box. I want to issue the command:

tcpdump -i eth1 -n vlan 2112 and ip src 9.255.253.18 -w /tmp/22-9eth1

so it capture some data. the thing is that when I close the ssh client im using the command is dropped . I want that the command will stilll worl and caprute the data although I close the ssh client.

how I do that ?

thanks,

Juan
 
Old 09-22-2005, 05:49 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Drop a nohup in front of that
Code:
man nohup
 
Old 09-22-2005, 06:25 AM   #3
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
so..

I just issue the same command with the word nohup before?

thats it?

thanks
 
Old 09-22-2005, 07:41 AM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You should just be able to background the process (add a "&" at the end of the line before pressing enter.
 
Old 09-22-2005, 08:53 AM   #5
phishtrader
LQ Newbie
 
Registered: Oct 2004
Location: Techsupporthell, WI
Distribution: Ubuntu Feisty Fawn, CentOS 4
Posts: 6

Rep: Reputation: 0
or use screen


There are lots of ways to do this. Let's see how many ways we can come up with!
 
  


Reply


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
send commands to background processes chatterbug89 Linux - General 2 07-13-2005 03:55 PM
Watch Commands Execute in GUI within background lennysokol Linux - General 1 05-16-2005 02:53 PM
Change background in solaris and Xterm background also EvilAngel Solaris / OpenSolaris 2 01-31-2005 11:25 AM
Background and Xterm transparent background EvilAngel Linux - General 1 01-31-2005 09:40 AM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 12:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 01:56 PM.

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
Open Source Consulting | Domain Registration