# Exececuting another application from within ruby

**URL:** <https://rubytalk.org/t/exececuting-another-application-from-within-ruby/19343>\
**Category:** ruby-talk\
**Created:** [5 July 2005 08:58 UTC](https://rubytalk.org/t/exececuting-another-application-from-within-ruby/19343 "2005-07-05T08:58:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masschelein\_Bart](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Masschelein\_Bart](https://rubytalk.org/u/Masschelein_Bart)\
**Post date:** [5 July 2005 08:58 UTC](https://rubytalk.org/t/exececuting-another-application-from-within-ruby/19343/1 "2005-07-05T08:58:08Z")

</div>

Hello there,

This is maybe a good thread to re-ask a question I had yesterday... I 'guess' it's somewhat related. I have problems with aborting an application started from within ruby using the system() call. I cannot simply press ctrl-C, like in Perl. I use Ruby to run a testbed of several sequences, and when I see that sth went wrong, I want to stop the processing. Now, the only way is to -kill xxx- the process. The suggestion was to redirect the SIGINT, and I tested this thingy using

trap "SIGINT", proc{ print "^C was pressed.\n" }\>

But I didn't even saw the ^C was pressed when the program was running.

If sbdy could give a hint or a clue where I should start looking, that would be great.

regards,  
Bart.
