Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use a MacBook Pro. Sometimes I want to pause the execution of a long heavy-duty experiment running on my system because I am on battery or for any other reason. Is there a way to do it in Eclipse ? Or even in Mac OS X itself ?

share|improve this question
    
Related question on s.o. ( stackoverflow.com/questions/5760256/eclipse-break-program ), but presumes that you've started the java program in eclipse in debug mode. It appears that is the only perspective in which there is a pause (suspend) button. Otherwise, indeed, signals (sigstop/sigcont sent via kill) can be used to pause/resume running processes. If an app is running in the foreground, ctrl+z (typically) sends sigstop signal; jobs and fg {job_num} to resume. –  michael_n Jan 15 '12 at 8:43
add comment

1 Answer

up vote 3 down vote accepted

if your process id is 1234, stop processing with kill -SIGSTOP 1234, resume with kill -SIGCONT 1234

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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