Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jun 2016 18:20:01 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rc scripting trouble with quotes
Message-ID:  <20160607182001.18ba905b@gumby.homeunix.com>
In-Reply-To: <CAH=3fONuy_afgSHGMO7YafN2cX8O9V9ULV3-%2BQq86eRxaJXysw@mail.gmail.com>
References:  <CAH=3fONuy_afgSHGMO7YafN2cX8O9V9ULV3-%2BQq86eRxaJXysw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 7 Jun 2016 14:04:27 +0200
Murk Fletcher wrote:

> Hi!
> 
> How do I access a variable inside quotes? Right now I'm having some
> difficulties:
> 
> stop_cmd="cd ${myapp} && \
>   ${myapp} stop && \
>   kill -9 `cat ${myapp}/tmp/pids/example.pid`"

Are you sure you really need to do this? Stopping daemons is a basic
part of what rc.subr does.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160607182001.18ba905b>