开发者

Kill all processes launched inside an xterm when exit

开发者 https://www.devze.com 2023-01-19 05:49 出处:网络
I\'m using Cygwin to s开发者_JAVA百科tart some servers. Each server is launched inside an xterm with a bunch of command like this one:

I'm using Cygwin to s开发者_JAVA百科tart some servers.

Each server is launched inside an xterm with a bunch of command like this one:

xterm -e $my_cmd /C &

Is there an easy way to kill all launched children (xterm and their running commands) in a row ?

I want also to be able kill a particular launched command when I close its parent xterm.

Someone knows how to perform that ?


killall xterm? That command is in the psmisc package. Xterm will notify its child process with a SIGHUP ("hangup") before it exits. Normally that will cause the child process to exit too, although some servers interpret that signal differently.

0

精彩评论

暂无评论...
验证码 换一张
取 消