LinuxQuestions.org
Register a domain and help support LQ
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 07-17-2006, 11:24 PM   #1
lieuquocdat
Member
 
Registered: Jun 2006
Posts: 34

Rep: Reputation: 15
How to bring a background diamon to foreground


I am using Domino for linux, when systen starts iDomino also starts automatically in background. so I do not see running command lines. How can I do to bring a background Domino to foreground?
 
Old 07-18-2006, 04:15 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Well without knowing what system (distro) you are using, or what you mean by background (this could mean a lot of diffrent things), it's hard to give you an exact answer.

I alwaays use 'screen' if I want to send something away from the console I'm using, and recall it again to view the status. You can try and find which init script is starting the program, then change it to send it to a screen instead.

'screen' is nice because you can ssh into your box and pull the screen up at any time, then detach it again when you're done. Basic use is as follows:

SCREEN
<run app>
ctrl+a+d #detach the screen
screen -r # reatach the screen

'man screen' for more info.

regards,
...drkstr
 
Old 07-18-2006, 04:50 PM   #3
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
I don't know that the following will work for domino or not but,
you can bring any job running in the background to foreground using this command
Code:
fg
Let me show you an example using shutdown command
Code:
root@Manish:~# shutdown -h 20:00 &
[1] 7445
root@Manish:~# jobs -l
[1]+  7445 Running                 shutdown -h 20:00 &
root@Manish:~# fg 1
shutdown -h 20:00
For more information, you can use fg manual
Code:
man fg
 
Old 07-19-2006, 08:54 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
manishsingh4u, did you test your suggestions? On my MEPIS 3.3.2 system:
Code:
$ man fg
No manual entry for fg
However, there is considerable info about fg in the JOB CONTROL section of the bash man page (search terms: JOB CONTROL (case sensitive) or Job control refers).

Furthermore, (again on my system) fg works fine in the Konsole the job was started in, but not in any other. Did you forget "when system starts iDomino also starts automatically in background", which implies that it was started by a script & isn't running in a console at all.

OP, why do you want to bring it to the foreground?
Would killing it as part of the process be acceptable?
 
Old 07-19-2006, 04:29 PM   #5
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
Quote:
Originally Posted by archtoad6
manishsingh4u, did you test your suggestions? On my MEPIS 3.3.2 system:
Code:
$ man fg
No manual entry for fg
Sorry. my bad. I tested it on Mepis 3.4-3 and the output was same. I used fg a long while back so, perhaps I might have read the manual online.
Anyway, if u read my previous post carefully, u will notice that I have already mentioned that "I am not sure that it will work for his case", but this command can be used to bring jobs running in background to front. What u are saying is correct too that, it can't bring daemons running in the background to front.
Still, if my post created any confusions to u, I am sorry for that.

Last edited by manishsingh4u; 07-19-2006 at 04:30 PM.
 
Old 07-19-2006, 09:09 PM   #6
lieuquocdat
Member
 
Registered: Jun 2006
Posts: 34

Original Poster
Rep: Reputation: 15
How can I use Screen command? I can not get help man about Screen on linux
 
Old 07-19-2006, 09:55 PM   #7
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
from reading the posts, i get the feeling that lieuquocdat wants to bring a daemon that loads on startup into the foreground. I don't know anyway to do that, but you can pico /var/log/dmsesg (slackware) or /var/lob/messages
 
Old 07-20-2006, 12:06 AM   #8
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
How can I use Screen command? I can not get help man about Screen on linux
Do you mean there was no man page for screen or you didn't understand it. If there is not man page for it, it's probably not installed on your system which means you will need to install it first.

regards,
...drkstr
 
Old 07-20-2006, 07:53 AM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
  1. I have re-read the thread & I think we need to know more to help you. Perhaps tell us why you want to "bring a background Domino to foreground". In other words, what's the underlying problem that prompted your Q?
    Also, is there a difference between this "background Domino" & the "iDomino" (daemon) that "starts automatically in background" "when system starts". If the distinction is confusing, we can explore that.

  2. If screen is not installed on your system & you want to read about it 1st, go here: http://man.linuxquestions.org/?query...ction=0&type=2. While there is no guarantee that it is exactly the same version you will get w/ your distro, it's a good start.

  3. When you want to read a log file, less is a good alternative to pico or any other editor. If you haven't used it, check it out (man less ).

  4. Quote:
    OP, why do you want to bring it to the foreground?
    Would killing it as part of the process be acceptable?
    Well, why not kill it & restart it in the foreground?
 
  


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
tty background/foreground color neo77777 Linux - General 11 11-25-2014 09:59 AM
Background and Foreground Datamike Linux - Software 2 01-20-2006 05:20 PM
wine not in foreground ? kron1234 Linux - Games 1 06-01-2005 04:37 PM
How do I customize background/foreground colors in Eclipse? wearetheborg Linux - Newbie 0 09-10-2004 03:48 PM
loading foreground nautilus_1987 Slackware 6 10-10-2002 02:12 PM


All times are GMT -5. The time now is 09:55 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration