backgroud process

Hi experts

How to write a shell program(sh) that running on the backgroud when foreground processing something, such as prompt ....... till the background process finished.

thx

Just include the & at the end of your shell script when you run. Like:

sh script &

Have a look at "nohup" as well...

nohup command &

Oh yeah....and once the program is running in the background you can kill it wil a ctrl+c...if it runs for a long time and you need to stop it - you'll need to KILL it.

ps -fu username

Then 'kill <<PID>>' where the PID is the processid column int he ps output.

Quite important really if the process isn't self terminating!