Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sun, 22 Dec 2002 22:51:50 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Tip: Running a bash script without the terminal window... In-Reply-To: <001801c2aa18$c37f6bc0$c8c8a8c0@peace> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT For the archives: http://cygwin.com/ml/cygwin/2002-12/msg01208.html Igor On Mon, 23 Dec 2002, [iso-8859-1] Peter Valdemar Mørch wrote: > This is just a little tip I'd like to share. > > It annoyed me for some time, that whenever I ran a bash script, I got a > terminal window whether or not my script needs it. Here is a Visual Basic > snippet that works for me on W2K and XP, and that runs a bash script without > the terminal. I use it to start xterms from windows shortcuts, for instance. > It really can start all kinds of things, also .bat files, if you like... > > C:\WINNT\system32\wscript.exe c:\data\scr\quiet.vbs c:\cygwin\bin\bash --login -c "echo do your bashing stuff here > /tmp/somefile" > > I think all machines have the wscript.exe executable. The VB script is of > course the central element, and here it is: > [snip quiet.vbs] -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/