Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How do I take multiple values for same name in -S option?

Received: by 10.216.209.196 with SMTP id s46mr1062511weo.0.1335182691602;
        Mon, 23 Apr 2012 05:04:51 -0700 (PDT)
X-BeenThere: capistrano@googlegroups.com
Received: by 10.216.202.164 with SMTP id d36ls7713969weo.8.gmail; Mon, 23 Apr
 2012 05:04:45 -0700 (PDT)
Received: by 10.180.86.227 with SMTP id s3mr1739955wiz.2.1335182684966;
        Mon, 23 Apr 2012 05:04:44 -0700 (PDT)
Received: by 10.180.86.227 with SMTP id s3mr1739954wiz.2.1335182684940;
        Mon, 23 Apr 2012 05:04:44 -0700 (PDT)
Return-Path: <conta...@rafagarcia.net>
Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45])
        by gmr-mx.google.com with ESMTPS id fm5si3464367wib.2.2012.04.23.05.04.44
        (version=TLSv1/SSLv3 cipher=OTHER);
        Mon, 23 Apr 2012 05:04:44 -0700 (PDT)
Received-SPF: pass (google.com: domain of conta...@rafagarcia.net designates 74.125.82.45 as permitted sender) client-ip=74.125.82.45;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of conta...@rafagarcia.net designates 74.125.82.45 as permitted sender) smtp.mail=conta...@rafagarcia.net
Received: by wgbdt14 with SMTP id dt14so9728453wgb.2
        for <capistrano@googlegroups.com>; Mon, 23 Apr 2012 05:04:44 -0700 (PDT)
        d=google.com; s=20120113;
        h=mime-version:x-originating-ip:in-reply-to:references:date
         :message-id:subject:from:to:content-type:x-gm-message-state;
        bh=ef0/++sBOab01t5jFMoIG6L3Xex/wVNjHLk05/9Vg3A=;
        b=Yxc+3G8J5MBs4AjquXXHFqM7DmZP5IlokBQ5J3DJaTBiYGEvi82Dp6XouGR8pPP2Px
         US0rhxq8XUCfcKxv5IEisenTSFMhuAwybkqiDXYloEhM3GmqSjl0ryn0EXtnikvQ92hD
         /g1B6YcL5y2M6N4Qn7LAys7c4QFYiPxzTjRBSa52nlvriWToYQZMw3i7GZSw0Q0PgUmZ
         lBAK06KSloN1iK93INo3y6IjYrQbOaahjmGTX3GQEWRVmvocdzB6Bk/4sEMlysZYw1hS
         xREjp9c3Br9YjKRsFNPHoDV5PKIx9CdmbqcWumn7tg67cm+BRb9Oflh4/PQsoPeLQ7W2
         hf9A==
MIME-Version: 1.0
Received: by 10.180.95.129 with SMTP id dk1mr23716145wib.3.1335182674890; Mon,
 23 Apr 2012 05:04:34 -0700 (PDT)
Received: by 10.223.123.212 with HTTP; Mon, 23 Apr 2012 05:04:34 -0700 (PDT)
X-Originating-IP: [83.54.180.225]
In-Reply-To: <CANDwZnP-UV61Hrqk+82rEaLQfiTEpeYYxP=Eu9LcVatFBXw...@mail.gmail.com>
References: <18836672.325.1334670896957.JavaMail.geo-discussion-forums@pbvs10>
	<CALgP05YQ+TDAAcQ6TcBVahe9XbSg5HeTn_T4Vs-AADp-QHL...@mail.gmail.com>
	<CANDwZnP-UV61Hrqk+82rEaLQfiTEpeYYxP=Eu9LcVatFBXw...@mail.gmail.com>
Date: Mon, 23 Apr 2012 14:04:34 +0200
Message-ID: <CALgP05YsZZxnE7SBNTAQ5pS7GCOjfUygcY7kM=ORt3J16ZV...@mail.gmail.com>
Subject: Re: [capistrano] How do I take multiple values for same name in -S option?
From: =?ISO-8859-1?Q?Rafa_Garc=EDa?= <conta...@rafagarcia.net>
To: capistrano@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d0444ee2d0c0ed804be577108
X-Gm-Message-State: ALoCoQn+3i6tVXumsiwOAnWItajF69u0Dwgdf6Z/VT3bJOalCR2M9u7tF0XijXBfBB8O1Cg7Tm2A

--f46d0444ee2d0c0ed804be577108
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

You're welcome :)

2012/4/23 Shrinath M <cool.shr...@gmail.com>

> Ah... I feel like a fool for not thinking something that simple... Great
> solution... Thanks...
>
> Regards,
> Shrinath M
> On Apr 23, 2012 12:51 AM, "Rafa Garc=EDa" <conta...@rafagarcia.net> wrote=
:
>
>> You can define a separator and then handle the parameter. In example:
>>
>> kill =3Dxx-2bc,xx-3cd,xx-4de
>>
>>
>> Then in your deploy file something like this:
>>
>> task_list =3D kill.split(",")
>>
>>
>> Regards
>>
>> 2012/4/17 shrinath_m2 <cool.shr...@gmail.com>
>>
>>> Hi,
>>>
>>> I have few binaries, like so:  xx-1ab, xx-2bc, xx-3cd, xx-4de
>>> I have written a task to kill the binaries using pkill. For that, the
>>> cap command I used is something like:
>>>
>>> cap -S kill=3Dxx-2bc kill-bin
>>>
>>> This is ok if I want to restart only 1 specific binary. How do I do if =
I
>>> want to restart 2 binaries?
>>> I am looking for something in lines of
>>>
>>> cap -S kill=3Dxx-2bc, xx-3cd kill-bin
>>>
>>> How to make such things happen?
>>> ps: if you know a better approach, let me know...
>>>
>>> Regards,
>>> shrinath_m2
>>>
>>> --
>>> * You received this message because you are subscribed to the Google
>>> Groups "Capistrano" group.
>>> * To post to this group, send email to capistrano@googlegroups.com
>>> * To unsubscribe from this group, send email to
>>> capistrano+unsubscribe@googlegroups.com For more options, visit this
>>> group at http://groups.google.com/group/capistrano?hl=3Den
>>
>>
>>  --
>> * You received this message because you are subscribed to the Google
>> Groups "Capistrano" group.
>> * To post to this group, send email to capistrano@googlegroups.com
>> * To unsubscribe from this group, send email to
>> capistrano+unsubscribe@googlegroups.com For more options, visit this
>> group at http://groups.google.com/group/capistrano?hl=3Den
>
>  --
> * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> * To post to this group, send email to capistrano@googlegroups.com
> * To unsubscribe from this group, send email to
> capistrano+unsubscribe@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/capistrano?hl=3Den
>

--f46d0444ee2d0c0ed804be577108
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_extra">You&#39;re welcome :)<br><br><div class=3D"gmail=
_quote">2012/4/23 Shrinath M <span dir=3D"ltr">&lt;<a href=3D"mailto:cool.s=
hr...@gmail.com" target=3D"_blank">cool.shr...@gmail.com</a>&gt;</span><br>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<p>Ah... I feel like a fool for not thinking something that simple... Great=
 solution... Thanks...</p>
<p>Regards,<br>
Shrinath M</p><div class=3D"HOEnZb"><div class=3D"h5">
<div class=3D"gmail_quote">On Apr 23, 2012 12:51 AM, &quot;Rafa Garc=EDa&qu=
ot; &lt;<a href=3D"mailto:conta...@rafagarcia.net" target=3D"_blank">contac=
t...@rafagarcia.net</a>&gt; wrote:<br type=3D"attribution"><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">

<div class=3D"gmail_extra">You can define a separator and then handle the p=
arameter. In example:</div><div class=3D"gmail_extra"><br></div><blockquote=
 style=3D"margin:0 0 0 40px;border:none;padding:0px"><div class=3D"gmail_ex=
tra">


kill =3Dxx-2bc,xx-3cd,xx-4de</div></blockquote><div class=3D"gmail_extra"><=
br></div><div class=3D"gmail_extra">Then in your deploy file something like=
 this:</div><div class=3D"gmail_extra"><br></div><blockquote style=3D"margi=
n:0 0 0 40px;border:none;padding:0px">


<div class=3D"gmail_extra">task_list =3D kill.split(&quot;,&quot;)</div></b=
lockquote><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">R=
egards<br><br><div class=3D"gmail_quote">2012/4/17 shrinath_m2 <span dir=3D=
"ltr">&lt;<a href=3D"mailto:cool.shr...@gmail.com" target=3D"_blank">cool.s=
hr...@gmail.com</a>&gt;</span><br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,=A0<div><br></div><div>I have few binarie=
s, like so: =A0xx-1ab, xx-2bc, xx-3cd, xx-4de</div><div>I have written a ta=
sk to kill the binaries using pkill. For that, the cap command I used is so=
mething like:=A0</div>


<div><br></div><div><font face=3D"&#39;courier new&#39;, monospace" color=
=3D"#00ff00" style=3D"background-color:rgb(0,0,0)">cap -S kill=3Dxx-2bc kil=
l-bin</font></div><div><font face=3D"&#39;courier new&#39;, monospace" colo=
r=3D"#00ff00" style=3D"background-color:rgb(0,0,0)"><br>


</font></div><div><font color=3D"#000000" face=3D"arial, sans-serif">This i=
s ok if I want to restart only 1 specific binary. How do I do if I want to =
restart 2 binaries?=A0</font></div><div><font color=3D"#000000" face=3D"ari=
al, sans-serif">I am looking for something in lines of=A0</font></div>


<div><font color=3D"#000000" face=3D"arial, sans-serif"><br></font></div><d=
iv><span style=3D"color:rgb(0,255,0);font-family:&#39;courier new&#39;,mono=
space;background-color:rgb(0,0,0)">cap -S kill=3Dxx-2bc, xx-3cd kill-bin</s=
pan><font color=3D"#000000" face=3D"arial, sans-serif"><br>


</font></div><div><span style=3D"color:rgb(0,255,0);font-family:&#39;courie=
r new&#39;,monospace;background-color:rgb(0,0,0)"><br></span></div><div><sp=
an style=3D"font-family:arial,sans-serif">How to make such things happen?=
=A0</span><span style=3D"color:rgb(0,255,0);font-family:&#39;courier new&#3=
9;,monospace;background-color:rgb(0,0,0)"><br>


</span></div><div><font color=3D"#000000" face=3D"arial, sans-serif">ps: if=
 you know a better approach, let me know...</font></div><div><font color=3D=
"#000000" face=3D"arial, sans-serif"><br></font></div><div><font color=3D"#=
000000" face=3D"arial, sans-serif">Regards,=A0</font></div>


<span><font color=3D"#888888"><div><font color=3D"#000000" face=3D"arial, s=
ans-serif">shrinath_m2</font></div>

<p></p>

-- <br>
* You received this message because you are subscribed to the Google Groups=
 &quot;Capistrano&quot; group.<br>
* To post to this group, send email to <a href=3D"mailto:capistrano@googleg=
roups.com" target=3D"_blank">capistrano@googlegroups.com</a><br>
* To unsubscribe from this group, send email to <a href=3D"mailto:capistran=
o%2Bunsubscribe@googlegroups.com" target=3D"_blank">capistrano+unsubscribe@=
googlegroups.com</a> For more options, visit this group at <a href=3D"http:=
//groups.google.com/group/capistrano?hl=3Den" target=3D"_blank">http://grou=
ps.google.com/group/capistrano?hl=3Den</a></font></span></blockquote>


</div><br></div>

<p></p>

-- <br>
* You received this message because you are subscribed to the Google Groups=
 &quot;Capistrano&quot; group.<br>
* To post to this group, send email to <a href=3D"mailto:capistrano@googleg=
roups.com" target=3D"_blank">capistrano@googlegroups.com</a><br>
* To unsubscribe from this group, send email to <a href=3D"mailto:capistran=
o%2Bunsubscribe@googlegroups.com" target=3D"_blank">capistrano+unsubscribe@=
googlegroups.com</a> For more options, visit this group at <a href=3D"http:=
//groups.google.com/group/capistrano?hl=3Den" target=3D"_blank">http://grou=
ps.google.com/group/capistrano?hl=3Den</a></blockquote>

</div>

<p></p>

-- <br>
* You received this message because you are subscribed to the Google Groups=
 &quot;Capistrano&quot; group.<br>
* To post to this group, send email to <a href=3D"mailto:capistrano@googleg=
roups.com" target=3D"_blank">capistrano@googlegroups.com</a><br>
* To unsubscribe from this group, send email to <a href=3D"mailto:capistran=
o%2Bunsubscribe@googlegroups.com" target=3D"_blank">capistrano+unsubscribe@=
googlegroups.com</a> For more options, visit this group at <a href=3D"http:=
//groups.google.com/group/capistrano?hl=3Den" target=3D"_blank">http://grou=
ps.google.com/group/capistrano?hl=3Den</a></div>
</div></blockquote></div><br></div>

--f46d0444ee2d0c0ed804be577108--