procname when ruby is used
David O'Brien
obrien at FreeBSD.ORG
Wed Aug 29 22:33:18 UTC 2012
On Wed, Aug 29, 2012 at 03:57:33PM -0400, Steve Wills wrote:
> name="mcollectived"
> command="%%PREFIX%%/sbin/${name}"
> read procname <"${command}"
> procname="%%PREFIX%%/bin/${procname##*/}"
Wouldn't this work?
name="mcollectived"
command="%%PREFIX%%/sbin/${name}"
procname="%%PREFIX%%/bin/${command##*/}"
(For example, "${0##*/}" is basename of a shell script's full path name)
--
-- David (obrien at FreeBSD.org)
More information about the freebsd-rc
mailing list