This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How do I make scripts my PC executable


I wrote:
>     $ cat ssh-backup-all.bat
>     C:\cygwin\bin\bash ./ssh-backup-all

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").


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]