delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/23/14:33:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BD5B780.C2381CE5@cportcorp.com>
Date: Tue, 23 Oct 2001 14:31:28 -0400
From: Peter Buckley <peter DOT buckley AT cportcorp DOT com>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "Senn, William" <william DOT senn AT ACS-INC DOT COM>
CC: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Startup in win32
References: <936D4BD1146DD3119A3B00508B714FF9029B92BE AT acsretailexch1 DOT acs-inc DOT com>

There is a file called "cygwin.bat" in your 
cygwin directory. It gets the start directory 
based on an environment variable that is set 
by /etc/profile, and kicks off 
a bash shell. 

Actually, this .bat file is how 
the cygwin shortcut works. Did you 
download all the packages with 
setup.exe?  

HTH,
Peter

"Senn, William" wrote:
> 
> Hi all,
> 
> I sincerely hope that this is an active list.  My question is this:
> Is there a  way to create a batch script or perl script in Windows NT that
> starts the cygwin bash shell and sets the starting directory? Something
> along the lines of (perl):
>         exec "c:\\cygwin\\bin\\bash -dc:\\myStartDir" or die "bummer
> dude:$!\n";
> 
> or (bat):
>         start c:\cygwin\bin\bash -dc:\\myStartDir
> 
> where -d specifies the directory to start (I know -d isn't it, just tell me
> how).
> 
> Any and all assistance appreciated.
> 
> Thanks,
> 
> Will
> mailto:wdsenn AT home DOT com
> 
> btw: I know this is ignoring many security issues, consider this a
> single-user installation...
> 
> --
> 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/

-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

--

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

- Raw text -


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