Michael McC Michael McC - 3 months ago 11
Bash Question

Stop meteor through a shell command

Thanks to some help I just now got on this site, I know how to start up my meteor app (start the meteor server running) with a shell script that I created with Automator. But now I realize that the only way I know how to stop the meteor server is to do a CTL-C in the terminal window. But if start the meteor server with my script, I don't have a shell window. Is there a way to stop the server through a shell script?

Answer

You can kill meteor with this command, as seen here:

kill $(ps ax | grep '[m]eteor' | awk '{print $1}')