I'm having a weird issue. Sometimes on a quite loaded server i get a bunch of :

# apt-get install sun-java6-jre
[1]+  Stopped                 apt-get install sun-java6-jre

or even

# (just hitting Return)
[1]+  Stopped                 apt-get install sun-java6-jre sun-java6-fonts

And then i can't do anything; all that does is returning me this 'stopped' line ...

What does that mean ? Too many processes ? How can i solve this ...

link|improve this question

80% accept rate
2  
It means you've got jobs running in the background - maybe ones that would like to communicate with the user (to report that they've completed, perhaps, or to get an answer to a question, or ...). – Jonathan Leffler Oct 31 '11 at 15:39
feedback

migrated from stackoverflow.com Nov 2 '11 at 8:21

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 2 down vote accepted

+Stopped means someone (probably an admin) sent the process a SIGTSTP (STOP signal) which puts the process on hold (using Job Control). It's the same what happens when you press Ctrl+Z.

This can probably be automated to keep runaway processes in check on a loaded server.

To resume the process, try "fg".

link|improve this answer
This is a pretty good hint considering the OP mentioned 'on a quite loaded server' +1 – user22394 Oct 31 '11 at 16:05
1  
or bg to resume it in the background (as if you'd started it with a & at the end) – Tom O'Connor Nov 2 '11 at 8:25
feedback

See Job Control

You can use

jobs # list the background jobs (by id number)

fg # to foreground the last background job

fg 3 # to foregroun background job with id '3'

Note: sometimes people will inadvertently spawn jobs in the background by failing to escape special characters:

 wget http://sample.org/file.txt?ts=122&uid=guest

instead of

 wget 'http://sample.org/file.txt?ts=122&uid=guest'

link|improve this answer
tried : "jobs" and still have that stopped message coming ... – Disco Oct 31 '11 at 15:48
all i did was apt-get update, so no mistake about a background task typo. – Disco Oct 31 '11 at 15:49
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.