Stopping or foregrounding a background job.
Vick Khera
khera at juliet.cs.duke.edu
Wed Feb 14 08:00:56 AEST 1990
In article <5542.25d6bcab at elroy.uh.edu> cosc6bp at elroy.uh.edu (A JETSON News User) writes:
>I have a C data gathering program running in the background. It is set up to
>execute a final statistics gathering routine when I bring it into the
>foreground and stop it via Ctrl-C. It works really well except when I have
>to bring it back into the foreground after I have logged out. How does
>one do this? At that point you can't %number or fg number it into the
>foreground. All I can get on it is it's process id from ps aux.
[...]
>It's a system of Sun 3/50 -60's. So finally:
[...]
>Ignacio Valdes
I assume you are trapping SIGINT to catch the CTRL-C. All you need to do
is issue the correct signal to your process, which is easily done with the
kill command. "kill -INT <pid>" should do the trick.
v.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vick Khera Department of Computer Science
ARPA: khera at cs.duke.edu Duke University
UUCP: ..!{mcnc,decvax}!duke!khera Durham, NC 27706
More information about the Comp.unix.questions
mailing list