Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Monday, May 9, 2011
Thursday, May 5, 2011
cygwin: killing inactive sessions from ps
Its probably not the shortest oneliner however it does the job in CYGWIN.
$ ps -a | grep '^I' | perl -pe '@x=split;print $x[1],"\n";$_=undef'| xargs -i{} -t kill -9 {}
Subscribe to:
Posts (Atom)