Calling shell script from DOS

Ismael Valladolid Torres ivalladt@punkass.com
Fri Jan 27 09:44:00 GMT 2006


David Christensen escribe:
> Pinaki Mukherjee wrote:
> > I have installed Cygwin. I want to invoke a shell
> > script from the DOS/Windows command prompt (instead of
> > opening Cygwin Window first and calling it from
> > there). How can I do this?
> > Thanks for any help.
> 
> This is a batch file that I use to launch a Bash script that backs up my
> machines:
> 
>     dpchrist@p42800e:~/mydocuments/backup-p42800e$ cat backup-all.bat
>     @echo off
> 
>     C:
>     chdir C:\cygwin\bin
> 
>     bash /backup/bin/backup-all

Use bash -i or bash --login if you also want your .bashrc or your
.bash_profile to be sourced.

Cordially, Ismael
-- 
Tout fourmille de commentaries, d'auteurs il en est grande cherté

     http://lamediahostia.blogspot.com/
     http://www.flickr.com/photos/ivalladt/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060127/4a347f11/attachment.sig>


More information about the Cygwin mailing list