![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| resume the suspended background job | baloo_mia | Linux | 2 | 04-20-2008 02:27 PM |
| awk continue | anhtt | Shell Programming and Scripting | 3 | 03-11-2008 08:08 AM |
| continue example | xramm | Shell Programming and Scripting | 7 | 07-03-2007 12:10 AM |
| background jobs exit status and limit the number of jobs to run | GrepMe | Shell Programming and Scripting | 1 | 06-11-2007 03:56 PM |
| Will the continue function work ???? | kamlesh_p | Shell Programming and Scripting | 2 | 10-12-2005 05:27 AM |
|
|
LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
|||
|
Hunter,
fg% can bring the job to foreground. What actually killerserv wants is run the stopped process in the background. I have tried to resume a stopped process with bg%. but the job is still not running although it may be in the background. I am having similar observations as Killerserv had.. |
|
||||
|
Well it works for me. After you background a job, does the "jobs" command say it is running? Does "ps" say it is running?
And bear in mind that if a background job attempts to write to the controlling terminal and the controlling terminal has tostop set on, a SIGTTOU will be sent to the background process. If that is happening and you don't want it to, then type "stty -tostop". |
|
|||
|
Hi!,
I have set the terminal options to "stty -tostop". now this is what I get when I try to run the VI editor in background which definitely needs a terminal to write. unix> bg %1 [1] vi test& unix> jobs [1] + Stopped (SIGTTOU) vi test Is it happening bcoz VI is basically an interactive foreground process and so cant run in background? |
|
||||
|
jyothi,
ive tried that same result on myside.. but i did set stty -tosusp and try both susp and stop: Could execute vi in background.. At last.. I think should try stty -tosusp instead of stop. I can recall back the vi editor. Works for me |