Re: [jruby-user] Shebang script with arguments
Rodrigo Botafogo <[email protected]> Mon, 30 Mar 2015 18:13:05 -0300
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAAKc=GDAmY7tNB6KhgFE5tV-encB0zTp1_JXejk-JUYZiub9Ew@mail.gmail.com> |
--089e015386d6f27401051287f334 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Does JRUBY_OPTS helps in this case? How do I use this? 2015-03-30 18:12 GMT-03:00 Rodrigo Botafogo <[email protected]>: > 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 = the >> > 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 >> >> >> > > > -- > Rodrigo Botafogo > > > > --=20 Rodrigo Botafogo --089e015386d6f27401051287f334 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Does JRUBY_OPTS helps in this case?=C2=A0 How do I use thi= s?</div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">2015-03-3= 0 18:12 GMT-03:00 Rodrigo Botafogo <span dir=3D"ltr"><<a href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]<= /a>></span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 = .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">So, can = I use shell variables? Any other solution? Any ideas?<div><br></div><div>Th= anks,</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">= 2015-03-30 18:05 GMT-03:00 Charles Duffy <span dir=3D"ltr"><<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>></span>= :<div><div class=3D"h5"><br><blockquote class=3D"gmail_quote" style=3D"marg= in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">POSIX doesn'= 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't be portable: You've<b= r> already filled that one position with "jruby", since slot 0 is &q= uot;env".<br> <div><div><br> On Mon, Mar 30, 2015 at 3:55 PM, Rodrigo Botafogo<br> <<a href=3D"mailto:[email protected]" target=3D"_blank">rodrig= [email protected]</a>> wrote:<br> > Hello...<br> ><br> > I have a shebang script for jruby, and I need to change the java heap = space<br> > in it.=C2=A0 How do I do that?=C2=A0 Is it possible?<br> ><br> > Doing:<br> ><br> > #!/usr/bin/env jruby -J-Xmx1024m<br> ><br> > does not work.<br> ><br> > I=C2=B4ve seen a suggestion, that for Python the best would be to add = the<br> > parameter to a shell variable.=C2=A0 Can this be done for JRuby?<br> ><br> ><br> > Thanks a lot....<br> ><br> > --<br> > Rodrigo Botafogo<br> ><br> ><br> ><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></div></div><span class=3D"HOEnZb"><font color=3D"#88888= 8"><br><br clear=3D"all"><div><br></div>-- <br><div><div dir=3D"ltr">Rodrig= o Botafogo<div><br><br><div><br></div></div></div></div> </font></span></div> </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> --089e015386d6f27401051287f334--