define rmake-exec that accepts a script file and use interactive ssh to create pty for cancelling