bash - Sending Unix/Linux SIGNAL through PIPE -



bash - Sending Unix/Linux SIGNAL through PIPE -

i want sent signal process after .5 seconds.

maybe not thought want uncommon temporary case.

i tried following, not working.

(sleep .5;kill -9)| some_process

sleep .5; kill -9 $(pidof some_process) should work. pidof returns process id process name. $() returns result of command kill command. alternative be:

sleep .5; pidof some_process | xargs kill -9

check man pidof details.

edit: there timeout. timeout -s sigkill 0.5s some_process should trick if understood question correctly.

linux bash signals pipe

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -