LinuxQuestions.org
Review your favorite Linux distribution.
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 02-18-2005, 11:30 PM   #1
pcweirdo
Member
 
Registered: Oct 2004
Location: Melbourne-ish, Australia
Distribution: Gentoo, Windows XP Pro
Posts: 58

Rep: Reputation: 15
how to connect forked process to a specific terminal


G'day,

I'm looking to connect a running forked and/or backgrounded process to a terminal of my choice, whether than be tty1 or a specific xterm window.

Here's an example of my situation. I've started quark (the music player) with
$ quark &
So it's in the background. Then I closed that xterm window, so I can't use the fg command to get it back into a terminal to see its output.

Any ideas/suggestions for me to try?

Thanks,
-pcweirdo.
 
Old 02-19-2005, 01:50 AM   #2
ogmoid
Member
 
Registered: Jul 2004
Location: Coeur d'Alene Idaho
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
'screen' may be a way you can do it.

$ screen
(screen starts in a new shell)

you can then start you commands (you wouldn't have to background them necessarily).

When you kill the xterm (or preferably detach screen), you can reattach from another terminal with:

$ screen -r
And it's as if you never left.

Screen has many options (for example; you could have it run the program directly rather than from a new shell), see the man page.

If you are the type to just dive right in this key command could save your bacon:

<ctrl-a> '?'

(first ctrl-a then a question mark - this brings up the key bindings for screens' commands; Which all start with <ctrl-a>)

screen is a wonderful program!
enjoy ...
 
Old 02-22-2005, 04:17 AM   #3
pcweirdo
Member
 
Registered: Oct 2004
Location: Melbourne-ish, Australia
Distribution: Gentoo, Windows XP Pro
Posts: 58

Original Poster
Rep: Reputation: 15
thanks.
 
  


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
get info about a specific process hfawzy Programming 4 01-31-2007 02:11 PM
Unable to Connect to Specific Port kaplan71 Fedora 10 05-09-2005 06:31 AM
Want to limit Memory to a specific Process tstaples Linux - General 3 01-26-2005 02:59 PM
load specific process watching? Artanicus Linux - General 2 01-16-2005 03:18 AM
How do you assign a process to a specific processor? ter_roshak Linux - General 1 12-19-2003 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration