Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-12-2007, 05:14 AM
|
#1
|
Member
Registered: Oct 2007
Posts: 160
Rep:
|
How to run multiple process in single command prompt
hi
Unix exists before the making of GUI interface .since it is a time sharing system ,how can one execute multiple programs in a single command line .
(i.e)the program should not be stopped using CTRL+Z instead it should be running(multiple programs).
thanks
|
|
|
10-12-2007, 05:20 AM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
I'm not sure, but maybe are you talking about background jobs? To put a process in background, simply type a & at the very end of the command line. To see running jobs in background, use the command jobs.
|
|
|
10-12-2007, 05:30 AM
|
#3
|
Member
Registered: Oct 2007
Posts: 160
Original Poster
Rep:
|
no i am not saying about background jobs .typing ps -e gives a list of background jobs.
if we run a process in a command terminal by typing processname or ./processname
the process gets started and the command prompt is inactive .
i want 2 know is there any way 2 keep the process running continously and starting
another process in the same command prompt.
thanks for u r reply
|
|
|
10-12-2007, 05:42 AM
|
#4
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by babu198649
i want 2 know is there any way 2 keep the process running continously and starting another process in the same command prompt.
|
Yes, it looks like it's just what I was talking about. If you launch something like this
the command prompt is immediately available to type other commands and you can continue your work, while the process runs silently in background. The builtin shell command jobs lists the running jobs.
|
|
|
10-12-2007, 06:37 AM
|
#5
|
Member
Registered: Oct 2007
Posts: 160
Original Poster
Rep:
|
yeah u r right
i am sorry i was unable to understand when u replied first.
why does not the job command does not show all the jobs of the system.
it only displays the jobs under its terminal.
is there any command to view all the jobs running in the system
Last edited by babu198649; 10-12-2007 at 06:40 AM.
Reason: abstract
|
|
|
10-12-2007, 06:52 AM
|
#6
|
Member
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735
Rep:
|
Hi.
I agree with colucix.
See http://www.gnu.org/software/bash/man...ref.html#SEC86 for a description of Bash Job Control, which includes the commands for manipulating your processes.
The man page for nohup shows how to start processes that survive a logout. Similarly for command screen (although I find it a bit too complex for my use).
The commands
allow viewing of process details ... cheers, makyo
|
|
|
10-12-2007, 07:02 AM
|
#7
|
Member
Registered: Oct 2007
Posts: 160
Original Poster
Rep:
|
Thanks again
Cheers...........
|
|
|
10-12-2007, 08:27 AM
|
#8
|
Member
Registered: Mar 2007
Location: Nebraska
Distribution: CentOS
Posts: 82
Rep:
|
I have found myself from time to time needing to send a running foreground job to the background. You can do that by CTRL Z and then at the prompt type bg (for background). Hope that adds a little more help on this.
|
|
|
All times are GMT -5. The time now is 10:16 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
|
|