Ctrl + C - Running in background

Hi, i got two questions:

1: I want my program to exit when I press ctrl + c. How can I do this?

2: I want another program to run in the background. Possible?

Thank you!!

···

--
Posted via http://www.ruby-forum.com/.

I believe Ctrl + C is
trap("INT"){ exit }
To run another program in the background, umm something to do with `bg` and
Ctrl + Z, I'm not sure about that.

j`ey
http://www.eachmapinject.com

···

On 7/11/06, Magnus Holm <judofyr@gmail.com> wrote:

Hi, i got two questions:

1: I want my program to exit when I press ctrl + c. How can I do this?

2: I want another program to run in the background. Possible?

Thank you!!

--
Posted via http://www.ruby-forum.com/\.