How to send “CTRL+C/SIGINT” to a remote host using Net::Ping in Perl ? I’m looking for some function like : Net::Ping->execute("CTRL+C"); or Net::Ping->echo("\x03");
How to send CTRL+C/SIGINT to a remote host using Net::Ping in Perl ? I’m
Share
The Net::Ping doc tells you:
You cannot send any relecant data to the host.
And even when you could: What process “on the other side” should execute that “CTRL+C” thing? Would you expect my browser to react to it? Or some other random process?
And by react I mean: Read it as plain text input. But I think your intention is to terminate some process with a “Signal”. Signals cannot be sent via network protocols, they are generated and distributed only inside one computer. You would have to invent your own protocol to bridge the gap.
Sorry, but your question is quite futile so far.