[Live-demo] deegree script for installation
Hamish
hamish_b at yahoo.com
Mon Sep 7 05:16:15 PDT 2009
Judit Mays wrote:
> My colleague and I have decided to do it this way:
>
> pid=$(ps fax|grep deegree|grep java|grep -v grep|cut -d\ -f 2)
> kill -9 $pid
tip:
ps fax | grep [d]eegree
then you don't have to use "grep -v grep"
> It is safe to assume that there is no other software
> running anything with the name "deegree" inside, so storage
> of the deegree pid when starting is not necessary, as it can
> be read from ps easily when deegree-tomcat is running and
> shall be turned off.
sure. but killall, pkill, or pgrep might be more direct :)
Hamish
More information about the Osgeolive
mailing list