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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-17-2006, 10:24 PM
|
#1
|
|
Member
Registered: Jun 2006
Posts: 34
Rep:
|
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?
|
|
|
|
07-18-2006, 03:15 PM
|
#2
|
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
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
|
|
|
|
07-18-2006, 03:50 PM
|
#3
|
|
Member
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422
Rep:
|
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
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
|
|
|
|
07-19-2006, 07:54 AM
|
#4
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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?
|
|
|
|
07-19-2006, 03:29 PM
|
#5
|
|
Member
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422
Rep:
|
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 03:30 PM.
|
|
|
|
07-19-2006, 08:09 PM
|
#6
|
|
Member
Registered: Jun 2006
Posts: 34
Original Poster
Rep:
|
How can I use Screen command? I can not get help man about Screen on linux
|
|
|
|
07-19-2006, 08:55 PM
|
#7
|
|
Member
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
|
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
|
|
|
|
07-19-2006, 11:06 PM
|
#8
|
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
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
|
|
|
|
07-20-2006, 06:53 AM
|
#9
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
- 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.
- 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.
- 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
).
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|