How to start MSYS with arguments for the first command executed
nikola bozovic <che2lf-/[email protected]> Fri, 30 Mar 2012 06:43:30 -0700 (PDT)
| Newsgroups | gmane.comp.gnu.mingw.user,gmane.comp.gnu.mingw.msys |
|---|---|
| Message-ID | <[email protected]> |
--===============1222303792013393414== Content-Type: multipart/alternative; boundary="-896388256-1170613613-1333115010=:54318" ---896388256-1170613613-1333115010=:54318 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable My plan is to edit msys.bat file that is used for=0Alunching msys and mingw= terminal.=0A=0ALine that lunches that terminal is:=0A=0Astart %WD%sh --log= in -i=0A=0A=0Athat works very nice, it opens blank unix like terminal.=0AI = am working on windows XP, and msys.bat is=A0=0Aprocessed from built in MS-D= OS command prompt, aka cmd.exe.=0Acommand sh also accepts a lot of arrgumen= ts, and one of them is=0A-c whic is suposed to be followed by command for e= xecution.=0Athat works olso, but when i call=A0=0Ash -c "notepad"=A0=0Ait o= pens notepad, but it does not change terminal. if i try=0Ash --login -i -c = "notepad"=0Asituation is the same. I need msys to load first and then to ex= ecute command.=0Aif i write these two in msys bat it does nothin, just open= and close terminal window.=0A=0Ai olso try numerous of combination but no = luck.=0AThanx for reading and if you know anyway to help, thank you ---896388256-1170613613-1333115010=:54318 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ve= rdana, helvetica, sans-serif;font-size:8pt"><div style=3D"font-family: verd= ana, helvetica, sans-serif; font-size: 8pt; ">My plan is to edit msys.bat f= ile that is used for</div><div style=3D"font-family: verdana, helvetica, sa= ns-serif; font-size: 8pt; ">lunching msys and mingw terminal.</div><div sty= le=3D"font-family: verdana, helvetica, sans-serif; font-size: 8pt; "><br></= div><div style=3D"font-family: verdana, helvetica, sans-serif; font-size: 8= pt; ">Line that lunches that terminal is:</div><div style=3D"font-family: v= erdana, helvetica, sans-serif; font-size: 8pt; "><br></div><div><font face= =3D"verdana, helvetica, sans-serif"><span style=3D"font-size: 11px;">start = %WD%sh --login -i</span></font><br></div><div><font face=3D"verdana, helvet= ica, sans-serif"><span style=3D"font-size: 11px;"><br></span></font></div><= div><font face=3D"verdana, helvetica, sans-serif"><span style=3D"font-size:= 11px;">that works very nice, it opens blank unix like terminal.</span></font></div><div><fon= t face=3D"verdana, helvetica, sans-serif"><span style=3D"font-size: 11px;">= I am working on windows XP, and msys.bat is </span></font></div><div><= font face=3D"verdana, helvetica, sans-serif"><span style=3D"font-size: 11px= ;">processed from built in MS-DOS command prompt, aka cmd.exe.</span></font= ></div><div><font face=3D"verdana, helvetica, sans-serif"><span style=3D"fo= nt-size: 11px;">command sh also accepts a lot of arrguments, and one of the= m is</span></font></div><div><font face=3D"verdana, helvetica, sans-serif">= <span style=3D"font-size: 11px;">-c whic is suposed to be followed by comma= nd for execution.</span></font></div><div><font face=3D"verdana, helvetica,= sans-serif"><span style=3D"font-size: 11px;">that works olso, but when i c= all </span></font></div><div><font face=3D"verdana, helvetica, sans-se= rif"><span style=3D"font-size: 11px;">sh -c "notepad" </span></font></= div><div><font face=3D"verdana, helvetica, sans-serif"><span style=3D"font-size: 11px;">i= t opens notepad, but it does not change terminal. if i try</span></font></d= iv><div><font face=3D"verdana, helvetica, sans-serif"><span style=3D"font-s= ize: 11px;">sh --login -i -c "notepad"</span></font></div><div><font face= =3D"verdana, helvetica, sans-serif"><span style=3D"font-size: 11px;">situat= ion is the same. I need msys to load first and then to execute command.</sp= an></font></div><div><font face=3D"verdana, helvetica, sans-serif"><span st= yle=3D"font-size: 11px;">if i write these two in msys bat it does nothin, j= ust open and close terminal window.</span></font></div><div><font face=3D"v= erdana, helvetica, sans-serif"><span style=3D"font-size: 11px;"><br></span>= </font></div><div><font face=3D"verdana, helvetica, sans-serif"><span style= =3D"font-size: 11px;">i olso try numerous of combination but no luck.</span= ></font></div><div><font face=3D"verdana, helvetica, sans-serif"><span styl= e=3D"font-size: 11px;">Thanx for reading and if you know anyway to help, thank you</span><= /font></div></div></body></html> ---896388256-1170613613-1333115010=:54318-- --===============1222303792013393414== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure --===============1222303792013393414== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ MinGW-users mailing list [email protected] This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users Also: mailto:mingw-users-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org?subject=unsubscribe --===============1222303792013393414==--