Archive for October, 2007
How to stop webrick from the command line
To create a bash file to stop webrick.
In a terminal type gedit stopWebrick and add the following to the contents of the file and save it. Give the file execute permission with chmod of using the file properties in nautilus.
#!/bin/bash
kill -9 `ps -o pid,cmd --no-heading -p $(pgrep ruby) | grep script/server | awk '{print $1}'`
This will kill the first ruby process it finds running as script/srever
Run it as needed.