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!!

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs