Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-04-2005, 03:07 PM   #1
Registered: Sep 2004
Location: Pennsylvania
Distribution: Gentoo, Suse, Fedora, Slackware
Posts: 56

Rep: Reputation: 15
Redirecting output of running command

Is there any way to redirect the output of a command that is already running. I have a lengthy command running in my terminal, and I'd like to log out but still get its output. I didn't think to direct the output to a file when I started it, so now I'm stuck. Any suggestions? I'm using a Bash shell.
Old 03-04-2005, 09:09 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Google up some discussion on how to use the command nohup to be able to logout and keep the process running. If I understand correctly, output will be redirected to a file called nohup.out.
Old 03-04-2005, 09:19 PM   #3
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
Or U can simply



Old 03-04-2005, 09:20 PM   #4
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
Sorry, missunderstanding. nohup is OK


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 05:35 PM
redirecting output of compile to a file halfcan Linux - Hardware 1 02-05-2005 11:01 PM
Redirecting mplayer output driptray Linux - Software 1 10-12-2004 08:42 AM
redirecting xmms output durden2.0 Linux - Software 0 03-06-2004 08:29 PM
redirecting output to multiple outputs granny Linux - General 6 02-13-2004 08:18 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:15 PM.

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