From: Roberto Divia` on 7 Dec 2009 08:23 root wrote: > David Brown <david.brown(a)hesbynett.removethisbit.no> wrote: >> root wrote: >>> Is there a way to pause a running process from >>> a different console? >> kill -STOP <pid> >> >> Continue with: >> >> kill -CONT <pid> >> >> mvh., >> >> David >> > > Perfect. Believe it or not I did man KILL before > asking. My man page doesn't mention these options. It's not an option, it's an alternate way to specify the signal to send. kill -19 ... => stop the process kill -18 ... => continue the process kill -SIGSTOP ... kill -SIGCONT ... kill -STOP ... kill -CONT ... All the above are equivalent forms for the same command. We also have the equivalent kill -s 19|SIGSTOP|STOP Same for the other signals, e.g.: - kill -s 1 - kill -1 - kill -SIGHUP - kill -HUP True is that the standard man page is a bit obscure on this subject... Ciao, -- Roberto Divia` Love at first sight is one of the greatest Dep:PH Bat:53 Mailbox:C02110 labour-saving devices the world has ever seen Route de Meyrin 385 --------------------------------------------- Case Postale Phone: +41-22-767-4994 CH-1211 Geneve 23 CERN Fax: +41-22-767-9585 Switzerland E-Mail: Roberto.Divia(a)cern.ch
From: Douglas Mayne on 7 Dec 2009 09:26 On Mon, 07 Dec 2009 04:16:51 +0000, root wrote: > John Reiser <jreiserfl(a)comcast.net> wrote: >>> Is there a way to pause a running process from a different console? >> >> Only if you have sufficient permission (capability) to become a >> debugger of that process. See PTRACE_ATTACH. >> >> > Thanks, but not what I need. I want to be able to start a job in one > console, then pause it from another console. In particular, the job I > want to start is mplayer which pulls up its own X and I lose control > from the starting console. I want to be able to pause the X. All these > are run on a remote machine. > Not specifically what you asked, but VNC (tightVNC, etc.) provides a stateful X session (apps, desktop, etc). I have only just started playing with VNC, but the most simple option "leaves" the audio at the remote device. That may, or not, be what you want MPlayer to do. -- Douglas Mayne
From: Bill Marcum on 7 Dec 2009 14:40 On 2009-12-07, root <NoEMail(a)home.org> wrote: > > Perfect. Believe it or not I did man KILL before > asking. My man page doesn't mention these options. man 7 signal
From: Robert Riches on 7 Dec 2009 22:21 On 2009-12-07, root <NoEMail(a)home.org> wrote: > John Reiser <jreiserfl(a)comcast.net> wrote: >>> Is there a way to pause a running process from >>> a different console? >> >> Only if you have sufficient permission (capability) >> to become a debugger of that process. See PTRACE_ATTACH. >> > > Thanks, but not what I need. I want to be able to > start a job in one console, then pause it from > another console. In particular, the job I want > to start is mplayer which pulls up its own > X and I lose control from the starting console. > I want to be able to pause the X. All these > are run on a remote machine. For text console purposes, you might look at the 'screen' utility. It lets you detach a running job from one console (or terminal window) and reconnect to it later. You would probably have to ssh to the machine on which mplayer is actually running, but that's not hard. HTH -- Robert Riches spamtrap42(a)verizon.net (Yes, that is one of my email addresses.)
From: Grant on 22 Dec 2009 01:41 On 22 Dec 2009 05:48:28 GMT, Gunnar Gren <gg(a)invalid.invalid> wrote: >Den 2009-12-06 skrev root <NoEMail(a)home.org>: >> Is there a way to pause a running process from >> a different console? > >^Z to pause and fg to resume. Reread carefully, the bit about a different console, in any case the answer was given days ago. Grant. -- http://bugsplatter.id.au
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: *.tgz > configure, make errors ? Next: loading modules automatically: automating modprobes |