Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Sender: cwilson AT ee DOT gatech DOT edu Message-ID: <36C1B822.7B51232E@ece.gatech.edu> Date: Wed, 10 Feb 1999 11:47:30 -0500 From: Charles Wilson X-Mailer: Mozilla 4.5 [en] (X11; U; HP-UX B.10.20 9000/777) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Executing a BASH script from a start menu shortcut Content-Type: multipart/mixed; boundary="------------9279F042A6DF26D265C3A1CA" --------------9279F042A6DF26D265C3A1CA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Forgot to copy the list on this reply... --------------9279F042A6DF26D265C3A1CA Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <36C0B5E7 DOT 5A318EBD AT ece DOT gatech DOT edu> Date: Tue, 09 Feb 1999 17:25:43 -0500 From: Charles Wilson X-Mailer: Mozilla 4.5 [en] (X11; U; HP-UX B.10.20 9000/777) X-Accept-Language: en MIME-Version: 1.0 To: campbell AT calgary DOT paradigmgeo DOT com Subject: Re: Executing a BASH script from a start menu shortcut References: <33C7347CC953D211A1ED0000F8751EFA3A5C AT PCNTSERVERA> Content-Type: multipart/alternative; boundary="------------710BA0B53AC8C553092D13FF" --------------710BA0B53AC8C553092D13FF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I can't guarantee this will work, since I haven't fully recovered from a recent hd crash, but try the following: Set your shortcut target to be: run bash --login myfile where run is from my run-1.1.4 package. available at ftp://belgarion.resnet.gatech.edu/pub/run/run-1.1.4.zip and myfile is: --------------snip------------- startx --------------snip------------- Note: no "#!/bin/bash" . You don't need it when putting the script filename in the commandline. Oh, and make sure that bash is in your Windows path. There's probably a more elegant way to do this, so that you don't need "myfile", but see if this works, first. Hope this helps --Chuck Wilson Robert Campbell wrote: > Does anybody know how to create an icon on the desktop (or from the > start menu) that will execute a bash script without starting a dos > prompt. I have cygwin setup to start my X server by executing 'startx' > from any bash shell, and I would like to know how I can create an icon > on my desktop to do this, without bringing up a command prompt > window.I would like the script to do something like this:#!/bin/bash > --loginstartx ----------------- > "Please don't remind me of the way things should be. We all know how > they should be, I am merely stating the way things are now." > > ---------------------------------------------------------------- > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > --------------710BA0B53AC8C553092D13FF Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I can't guarantee this will work, since I haven't fully recovered from a recent hd crash, but try the following:

Set your shortcut target to be:
    run bash --login myfile
where
    run is from my run-1.1.4 package. available at ftp://belgarion.resnet.gatech.edu/pub/run/run-1.1.4.zip

and myfile is:
--------------snip-------------
startx
--------------snip-------------

Note: no "#!/bin/bash" . You don't need it when putting the script filename in the commandline. Oh, and make sure that bash is in your Windows path. There's probably a more elegant way to do this, so that you don't need "myfile", but see if this works, first.

Hope this helps
--Chuck Wilson
 
 

Robert Campbell wrote:

 Does anybody know how to create an icon on the desktop (or from the start menu) that will execute a bash script without starting a dos prompt. I have cygwin setup to start my X server by executing 'startx' from any bash shell, and I would like to know how I can create an icon on my desktop to do this, without bringing up a command prompt window.I would like the script to do something like this:#!/bin/bash --loginstartx -----------------
"Please don't remind me of the way things should be.  We all know how they should be, I am merely stating the way things are now." 

--    Want to unsubscribe from this list?                              Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--------------710BA0B53AC8C553092D13FF-- --------------9279F042A6DF26D265C3A1CA Content-Type: text/plain; charset= -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------9279F042A6DF26D265C3A1CA--