in reply to Sending <ctrl><break> to java

Windows doesn't have signals. If some usage of kill does what you want, it would be a very special emulation. It would surely be better to call the underlying system call more directly. Win32::Console's GenerateCtrlEvent does just that.

Note that GenerateCtrlEvent can be called as a static method: Win32::Console->GenerateCtrlEvent(...);. You do not need to create a Win32::Console object.

Replies are listed 'Best First'.
Re^2: Sending <ctrl><break> to java
by mojoshaneman (Novice) on Apr 27, 2007 at 23:43 UTC
    Thanks for the replies.

    I tried:

    kill('ABRT',$pid);
    kill('BREAK',$pid);

    Win32::Console->GenerateCtrlEvent(CTRL_BREAK_EVENT, $pid);

    No dice. Any other ideas?