Date: Wed, 29 Aug 2012 22:33:18 +0000 From: David O'Brien <obrien@FreeBSD.ORG> To: Steve Wills <swills@FreeBSD.org> Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used Message-ID: <20120829223318.GA32596@hub.freebsd.org> In-Reply-To: <503E742D.3030801@FreeBSD.org> References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> <503E742D.3030801@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120829223318.GA32596>