LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   running jobs in background in bash (http://www.linuxquestions.org/questions/linux-software-2/running-jobs-in-background-in-bash-101810/)

markhod 10-08-2003 06:02 PM

running jobs in background in bash
 
Hi,

I want to run jobs inthe background in bash. So I set my job going and do a ctrl^z to suspend. Accoridng to the manual if I do bg%<JOBID> the job will continue in the background. By using 'set -b' I see that straight after doing bg %<JOBID> the job is stopped by something. I am using bash 2.05. How can I make jobs run in the background?

Thanks,

Mark.

/bin/bash 10-08-2003 07:05 PM

program &
That will cause program to execute in the background.

Crashed_Again 10-08-2003 07:11 PM

To further this after you put a program using &, as /bin/bash stated, you can view the programs running in the background by using the 'jobs' command. Then if you want to bring a program back to the foreground you can do:

fg %n

replacing n with the job number given by the 'jobs' command.


All times are GMT -5. The time now is 09:19 AM.