This is the mail archive of the
mailing list for the Cygwin project.
Re: How do I make scripts my PC executable
David Christensen wrote:
And I posted alternative content for the batch script that would save
you from putting two unnecessary lines in the shell script. Or so I thought.
$ cat ssh-backup-all.bat
Steve Holden wrote:
Wouldn't it be possible to omit the first two executable lines and
have the batch script read
c:\cygwin\bin\bash -l ./ssh-backup-all
I posted a sample shell session. The "$ cat ssh-backup-all.bat" is what I typed
into my shell and the "C:\cygwin\bin\bash ./ssh-backup-all" is the result (e.g.
the output of the "cat" command; the contents of "./ssh-backup-all").
The -l (or --login) option has bash read its usual startup files,
thereby avoiding the need four the course (".") commands at the
beginning of the shell script.
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html