Re: [jruby-user] Shebang script with arguments

Rodrigo Botafogo <[email protected]> Mon, 30 Mar 2015 18:12:12 -0300
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAAKc=GC2mOGFj6pygtybQ7qyO6H4AP0QML==FLZiZ3rmH-mUcA@mail.gmail.com>
--001a113f8df8c1b55f051287f084
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

So, can I use shell variables? Any other solution? Any ideas?

Thanks,

2015-03-30 18:05 GMT-03:00 Charles Duffy <[email protected]>:

> POSIX doesn't generally allow more than one argument (other than the
> interpreter name itself) to be passed as part of a shebang, so even if
> your operating system supports this, it won't be portable: You've
> already filled that one position with "jruby", since slot 0 is "env".
>
> On Mon, Mar 30, 2015 at 3:55 PM, Rodrigo Botafogo
> <[email protected]> wrote:
> > Hello...
> >
> > I have a shebang script for jruby, and I need to change the java heap
> space
> > in it.  How do I do that?  Is it possible?
> >
> > Doing:
> >
> > #!/usr/bin/env jruby -J-Xmx1024m
> >
> > does not work.
> >
> > I=C2=B4ve seen a suggestion, that for Python the best would be to add t=
he
> > parameter to a shell variable.  Can this be done for JRuby?
> >
> >
> > Thanks a lot....
> >
> > --
> > Rodrigo Botafogo
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


--=20
Rodrigo Botafogo

--001a113f8df8c1b55f051287f084
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">So, can I use shell variables? Any other solution? Any ide=
as?<div><br></div><div>Thanks,</div></div><div class=3D"gmail_extra"><br><d=
iv class=3D"gmail_quote">2015-03-30 18:05 GMT-03:00 Charles Duffy <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">charles=
@dyfis.net</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">POSIX doesn&#3=
9;t generally allow more than one argument (other than the<br>
interpreter name itself) to be passed as part of a shebang, so even if<br>
your operating system supports this, it won&#39;t be portable: You&#39;ve<b=
r>
already filled that one position with &quot;jruby&quot;, since slot 0 is &q=
uot;env&quot;.<br>
<div><div class=3D"h5"><br>
On Mon, Mar 30, 2015 at 3:55 PM, Rodrigo Botafogo<br>
&lt;<a href=3D"mailto:[email protected]">rodrigo@rodrigobotafogo.=
com</a>&gt; wrote:<br>
&gt; Hello...<br>
&gt;<br>
&gt; I have a shebang script for jruby, and I need to change the java heap =
space<br>
&gt; in it.=C2=A0 How do I do that?=C2=A0 Is it possible?<br>
&gt;<br>
&gt; Doing:<br>
&gt;<br>
&gt; #!/usr/bin/env jruby -J-Xmx1024m<br>
&gt;<br>
&gt; does not work.<br>
&gt;<br>
&gt; I=C2=B4ve seen a suggestion, that for Python the best would be to add =
the<br>
&gt; parameter to a shell variable.=C2=A0 Can this be done for JRuby?<br>
&gt;<br>
&gt;<br>
&gt; Thanks a lot....<br>
&gt;<br>
&gt; --<br>
&gt; Rodrigo Botafogo<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div>---------------------------------------------------------------=
------<br>
To unsubscribe from this list, please visit:<br>
<br>
=C2=A0 =C2=A0 <a href=3D"http://xircles.codehaus.org/manage_email" target=
=3D"_blank">http://xircles.codehaus.org/manage_email</a><br>
<br>
<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature"><div dir=3D"ltr">Rodrigo Botafogo<div><br><br><div><br=
></div></div></div></div>
</div>

--001a113f8df8c1b55f051287f084--