From owner-freebsd-questions@freebsd.org Tue Jun 7 17:20:05 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8200EB6E179 for ; Tue, 7 Jun 2016 17:20:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B0CD1629 for ; Tue, 7 Jun 2016 17:20:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x231.google.com with SMTP id v199so29354206wmv.0 for ; Tue, 07 Jun 2016 10:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=6ZtMDFiuTKWRT2RMXaV0bP4FVjTdwNawVEzTnNUlaQ8=; b=LLdPM1mBYv+pyQ3sRsByaecEYe64Evfk/LIcQVOfxj95w/jQjKXxNDUWwF+81a6Lei UHydrchLIEeTc/TWAAz/UsOu/em9pbDa9esxDCU1osBtyE0etq168LpFxdtAAXx3LvNP OnpjZVCyfS+EIeV/axMUO7xGrww6EWqCZsnVqZE4tqoTdn3ChsAPVVsGxyUGpsGD2r6X jy/Oo5Z/78e6WsXMe1k9uuKWadD4KpkqwWlgFJAPMGKUte46PRmNVDLc0THT0EE6YIMB JVDWnsyX+PmoEKnxzSy1okobCM6FzrVIJyELYx6wVoCTO9Lwy5iWrfSk8wUrCCjrKGHM IQvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6ZtMDFiuTKWRT2RMXaV0bP4FVjTdwNawVEzTnNUlaQ8=; b=hmfkzqR6YZtCna3z/TF6obgNWYMBAB/Z5durGPAgPAegIHAUF3HT9YkY75fxKj+pBq rqvRdxnxOd05Aok6HEuIJzXLdwsg4wqPnFckVtNMRHCibAUfR8Bx9zUUW6m/hQwf5/3N V9hG7TWKcmeqxaI+7Fo2NZLDXt3TmlI0WMcI4V001H0SDc7CRVik1jpXWf6+UawG0AvV Tpc6ju0B0ptouAyGuwnZTLy0hkIdhSMano2C0qIL0g4pf2rDzjthR/Py1/rGjIwKNA2I dJOy8tc0PGbnvlwzbNdsFY+Hqrnw5dUUW+XW2LuD8PRKOgaJzfw4d4Mr34FRoJIWK7xV 4OIw== X-Gm-Message-State: ALyK8tIPlBMsui///DHcEfV9+o7tbU2WCr9zJTwUw/RctxCKfCbFnNA/zDQh3LErAO9wHA== X-Received: by 10.194.114.72 with SMTP id je8mr466906wjb.88.1465320003669; Tue, 07 Jun 2016 10:20:03 -0700 (PDT) Received: from gumby.homeunix.com ([81.171.97.157]) by smtp.gmail.com with ESMTPSA id q194sm20452245wme.18.2016.06.07.10.20.02 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Jun 2016 10:20:02 -0700 (PDT) Date: Tue, 7 Jun 2016 18:20:01 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: rc scripting trouble with quotes Message-ID: <20160607182001.18ba905b@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2016 17:20:05 -0000 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.