delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/10/16:47:33

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 <cwilson AT ee DOT gatech DOT edu>
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

--------------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 <cwilson AT ece DOT gatech DOT edu>
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

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
I can't guarantee this will work, since I haven't fully recovered from
a recent hd crash, but try the following:
<p>Set your shortcut target to be:
<br>&nbsp;&nbsp;&nbsp; run bash --login myfile
<br>where
<br>&nbsp;&nbsp;&nbsp; run is from my run-1.1.4 package. available at <A HREF="ftp://belgarion.resnet.gatech.edu/pub/run/run-1.1.4.zip">ftp://belgarion.resnet.gatech.edu/pub/run/run-1.1.4.zip</A>
<p>and myfile is:
<br>--------------snip-------------
<br>startx
<br>--------------snip-------------
<p>Note: no "#!/bin/bash" . You don't need it when putting the script filename
in the commandline.&nbsp;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.
<p>Hope this helps
<br>--Chuck Wilson
<br>&nbsp;
<br>&nbsp;
<p>Robert Campbell wrote:
<blockquote TYPE=CITE>&nbsp;<span class=248484514-09021999><font face="Arial"><font color="#000000"><font size=-1>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.</font></font></font></span>&nbsp;<span class=248484514-09021999><font face="Arial"><font color="#000000"><font size=-1>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.</font></font></font></span><span class=248484514-09021999></span><span class=248484514-09021999><font face="Arial"><font color="#000000"><font size=-1>I
would like the script to do something like this:</font></font></font></span><span class=248484514-09021999></span><span class=248484514-09021999><font face="Arial"><font color="#000000"><font size=-1>#!/bin/bash
--login</font></font></font></span><span class=248484514-09021999></span><span class=248484514-09021999><font face="Arial"><font color="#000000"><font size=-1>startx</font></font></font></span><span class=248484514-09021999></span>&nbsp;<font face="Courier New"><font size=-2>-----------------</font></font>
<br><font face="Courier New"><font size=-2>"Please don't remind me of the
way things should be.&nbsp; We all know how they should be, I am merely
stating the way things are now."</font></font>&nbsp;
<pre WRAP>
<hr WIDTH="90%" SIZE=4>--&nbsp;&nbsp;&nbsp;
Want to unsubscribe from this list?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com</pre>
</blockquote>

</body>
</html>

--------------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--


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019