Skip to content

Instantly share code, notes, and snippets.

@misaelnieto
Created June 19, 2013 20:25
Show Gist options
  • Save misaelnieto/5817710 to your computer and use it in GitHub Desktop.
Save misaelnieto/5817710 to your computer and use it in GitHub Desktop.
Kill minecraft
#!/bin/bash
#Set it to run with cron every 5 minutes or so
# 5 * * * * /path/to/kill-minecraft.sh
#Do this under your own risk.
ps -e --format pid,command | grep minecraft.LauncherFrame | cut -f1 -d ' ' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment