This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lauching a perl script from a .bat


Marko,

At 10:24 2002-07-22, Marko Loparic wrote:
Hello,

I have developed a perl script to a remote user who
runs Windows. I would like to make an easy
installation
cd for him and to allow him to launch to script using
a .bat file. I have two basic questions.

1) The perl script uses cygwin names like /cygdrive,
so I can't launch perl directly from a .bat file. I
suppose I have to launch cygwin's bash passing the
script as an argument. How do I do this?
man cygpath

BASH per se doesn't offer a solution to this issue--it knows only the Unix cocoon of Cygwin.


2) I would like to insert a basic cygwin installation
in the cd. It seems that zipping c:\cygwin and
unzipping it in his computer works. Is this a safe
solution?
Use the Cygwin installer ("Setup.exe" -- <http://www.cygwin.com/setup.exe>)--it handles setting up the registry entries used by the Cygwin "kernel" (i.e., Cygwin1.dll).

Download the packages you wish to install (use a mirroring tool such as wget, FTP Voyager or the Cygwin Setup.exe installer in "Download from Internet" mode) and burn the resulting files onto the CD you'll use to perform the installations.


Thank you very much in advance!
Marko
I hope it helps.


Randall Schulz
Mountain View, CA USA


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]