Calling shell script from DOS

David Christensen dpchrist@holgerdanske.com
Fri Jan 27 06:37:00 GMT 2006


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


HTH,

David


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list