This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: put the process running in background


John Love-Jensen wrote:
 you will probably be
able to get better accuracy, deeper knowledge, and faster answers on a more
appropriate forum.

To run a program in the background, with the bash shell, you can do this:

myapp &

If you want to run it in the background disconnected from your current
session (so if you exit your bash shell, the app stays running) you can do
this:

(myapp &) </dev/null >/dev/null 2>/dev/null


Beats me why so many systems have begun requiring that </dev/null. Maybe I'll get used to it.
Also useful on a linux text-only installation are the screen program, and the alt-1 alt-2 etc methods for switching screens.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]