Aborting a rake task which uses a subprocess

Discussion in 'Ruby' started by Alex Young, Jan 17, 2007.

  1. Alex Young

    Alex Young Guest

    Hi all,

    I've got a rake file which I use to deploy a website. This rakefile
    involves running a bunch of backticked subprocesses (like ssh sessions,
    lftp sessions and so on). Often, I can spot that something has gone
    wrong in one of these subprocesses from the output, or realise I've
    forgotten something crucial, and want to abort manually.

    Hitting Ctrl-C only affects the subprocess that's running at the time,
    and makes rake just skip on to the next one. Is there any generic way
    of allowing Rake to also catch the signal and abort?

    --
    Alex
     
    Alex Young, Jan 17, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Van Dyk
    Replies:
    2
    Views:
    104
    Damphyr
    Jan 31, 2006
  2. peppermonkey
    Replies:
    1
    Views:
    247
    Gregory Brown
    Feb 10, 2007
  3. Stéphane Wirtel
    Replies:
    3
    Views:
    375
    Stephane Wirtel
    Jun 15, 2007
  4. James Mead
    Replies:
    0
    Views:
    145
    James Mead
    Jan 15, 2008
  5. Nic Young
    Replies:
    0
    Views:
    147
    Nic Young
    Jun 23, 2008
Loading...

Share This Page