How to run multiple process in single command prompt
Linux - NewbieThis 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.
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.
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.
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
Code:
./processname &
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.
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
Code:
ps aux
top
allow viewing of process details ... cheers, makyo
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.