[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: stopped jobs



George Adamides:
>
> sometimes when i try to logout from my linux system i get the following message:
> #There are stopped jobs.
> 
> what does this mean and how do i handle this issue?

Background:

You can suspend jobs in a shell by pressing Ctrl+z or let them run in
the background by starting them with a trailing '&'. These are "stopped
jobs". You can view which jobs are still running by executing 'jobs':

$ jobs
[1]-  Stopped                 vim
[2]+  Stopped                 mc

You can now pick one of them to "wake up" again with the 'fg'
(foreground) command. In the case above, 'fg %1' would wake up vim, 'fg
%2' would wake up mc. You could also run 'fg' without any parameters,
which wakes up whatever process you put to sleep last. In the case above
this would be mc (shown by the + sign after the job id).

Handling:

If you log out and have background jobs running, these jobs will be
terminated without further questions. Since this might not be what you
want, the shell asks about these jobs. If you still want to exit,
regardless of these jobs' destiny, you can simply repeat 'exit' or
pressing Ctrl+d and the shell will exit. Otherwise, the commands above
will help you out.

J.
-- 
I start many things but I have yet to finish a single one.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: