Skip to content

Instantly share code, notes, and snippets.

@palewire
Created December 9, 2012 06:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palewire/4243563 to your computer and use it in GitHub Desktop.
Save palewire/4243563 to your computer and use it in GitHub Desktop.
deletes old Xvfb processes
ps -eo pid,etime,comm | egrep '^ *[0-9]+ +([0-9]+-[^ ]*|[0-9]{2}:[0-9]{2}:[0-9]{2})' | grep Xvfb | awk '{print $1}' | sudo xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment