Linux - SoftwareThis 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.
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?
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
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?
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.
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.