Giter Club home page Giter Club logo

Comments (7)

DarthGandalf avatar DarthGandalf commented on July 20, 2024

On 04.10.2011 20:33, Daniel Fort wrote:

Hi.

Please add a way to send signals to running commands.
For example when you do ping www.google.com there's no way to terminate it. Only killall ping.

Thanks.

What's wrong with doing "ps ux" and then "kill 12345"?
We can't even handle Ctrl-C due to how does IRC work...

from znc.

bigpresh avatar bigpresh commented on July 20, 2024

If ZNC started the process, it can signal it, surely?

Presumably, if you started a process via ZNC's shell module, you did so because you didn't want to SSH to the box in question and use a real shell; so being able to signal the processes you created does sound reasonably sane.

(Personally, I don't use the shell module, but thought I'd add my feedback)

from znc.

DarthGandalf avatar DarthGandalf commented on July 20, 2024

On 04.10.2011 21:21, David Precious wrote:

If ZNC started the process, it can signal it, surely?
Sure, any your process (including ZNC) can signal any your process
(including the one which shell module started).
Presumably, if you started a process via ZNC's shell module, you did so because you didn't want to SSH to the box in question and use a real shell; so being able to signal the processes you created does sound reasonably sane.

So, what is suggested way to send the signal, and how is it easier than
running pkill through the same shell module?

from znc.

bigpresh avatar bigpresh commented on July 20, 2024

So, what is suggested way to send the signal, and how is it easier than running pkill through the same shell module?

Yeah, true, you could run pkill yourself through the same module easily enough.

I was thinking of a "signal" command which would deliver the requested signal (via kill() ) to the given PID (or, perhaps, by default to the PID of the last command started via the shell module). You're right though, just executing pkill takes care of it.

from znc.

naquad avatar naquad commented on July 20, 2024

I know about ps ux & kill way. Just thought such thing should be more convinient.

from znc.

naquad avatar naquad commented on July 20, 2024

sorry. wrong button :)

from znc.

DarthGandalf avatar DarthGandalf commented on July 20, 2024

On 05.10.2011 03:23, Daniel Fort wrote:

I know about ps ux& kill way. Just thought such thing should be more convinient.

The convenient way is to press ^C.
But since IRC client won't send that to server, it's impossible to use
it here.

If to invent a new way to do that, it will be even less convenient than
running kill/pkill, as it would be specific to ZNC shell module.
No another shell has that, as they just use simple ^C

from znc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.