Unix Shell - is it possible to run a Cygwin scipt from the Windows command line?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2007 > is it possible to run a Cygwin scipt from the Windows command line?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author is it possible to run a Cygwin scipt from the Windows command line?
RolandRB

2007-02-20, 7:16 pm

I have a Cygwin script that I would like to run from the Windows
command line if possible and have its output read in but I don't even
know if that is remotely possible. I am wondering if it is possible to
add a Cygwin script and bin library to the Windows path such that it
can execute it like it was part of Windows, calling the bash shell on
Cygwin, strut its stuff and return the results.

If it helps at all then this is the script, which as you can see will
take a few hours to convert and test which I would rather avoid. Also,
I don't like duplication.

http://www.datasavantconsulting.com...pts/layout2lsps

PS. Thanks for the responses about Cygwin email not working and I will
get back to that but I am working under pressure at the moment and
email on Cygwin has zero priority until next week.

Keith Thompson

2007-02-20, 7:16 pm

"RolandRB" <rolandberry@hotmail.com> writes:
> I have a Cygwin script that I would like to run from the Windows
> command line if possible and have its output read in but I don't even
> know if that is remotely possible. I am wondering if it is possible to
> add a Cygwin script and bin library to the Windows path such that it
> can execute it like it was part of Windows, calling the bash shell on
> Cygwin, strut its stuff and return the results.

[...]

I don't know, but you're more likely to get answers on one of the
Cygwin mailing lists. See <http://cygwin.com/lists.html>.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
RolandRB

2007-02-21, 7:26 am

On 21 Feb, 09:28, Tintin <tin...@invalid.invalid> wrote:
> RolandRB wrote:
>
>
>
>
> Create a Windows batch file
>
> @echo off
> c:
> chdir C:\cygwin\bin
> bash C:\Path\to\script.sh


Thanks, I'll play around with that.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com