Sunday, 15 February 2015

Batch - Kill Process by User -



Batch - Kill Process by User -

i have multiple of same processes running, different user names. possible kill instances of said process 1 username?

for illustration can see: http://gyazo.com/85a627dfb9c775841047c4feaca3c8cf

say wanted kill process owned user: tcagame_svc50 possible?

thanks

if have access cygwin (i assume windows issue), pkill handle this.

pgrep looks through running processes , lists process ids matches selection criteria stdout. criteria have match. example,

pgrep -u root sshd

will list processes called sshd , owned root.

pkill send specified signal (by default sigterm) each process instead of listing them on stdout.

see here

batch-file

No comments:

Post a Comment