Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!uvaarpa!mcnc!duke!juliet!khera From: khera@juliet.cs.duke.edu (Vick Khera) Newsgroups: comp.unix.questions Subject: Re: Stopping or foregrounding a background job. Message-ID: <17529@duke.cs.duke.edu> Date: 13 Feb 90 21:00:56 GMT References: <5542.25d6bcab@elroy.uh.edu> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC 27706 Lines: 21 In article <5542.25d6bcab@elroy.uh.edu> cosc6bp@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 " should do the trick. v. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ..!{mcnc,decvax}!duke!khera Durham, NC 27706