This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: How do I make scripts my PC executable
Andrew DeFaria wrote:
> I think he was saying that this:
> $ cat ssh-backup-all.bat
> C:\cygwin\bin\bash ./ssh-backup-all
> $ cat ssh-backup-all
> #! /bin/sh
> . /etc/profile
> . /home/dpchrist/.bash_profile
> ##### do backup stuff
> could be reduced to this:
> $ cat ssh-backup-all.bat
> C:\cygwin\bin\bash -l ./ssh-backup-all
> $ cat ssh-backup-all
> ##### do backup stuff
I forget the gory details, but I do remember that there was gore. I tried many
permutations of Bash arguments, shell script commands, etc., and the above is
what worked on my particular installation of Cygwin then (2006/09/14) and what
still works on my particular installation of Cygwin today (last updated
2007-05-25). There may be other ways to get it to work; YMMV.
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/