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.
can I run both PHPBB3 and ruby simultaneously on single server
no reason why not, pretty sure the web server filters on file extension, and forwards either to ruby or PHP.
If you want a good hosting provider that supports php & ruby / rails apps, see netOxide.co.uk. Bloody cheap, great badwidth deals.
I think there’s a mistake in your command line: the single quote before the {print must be a forward quote like this:
awk ‘{print $1}’
Yves
Aarg. That’s the bloody blog tool that changes these quotes… be warned … both quotes need to be simple, forward, quotes