delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "David Christensen" <dpchrist AT holgerdanske DOT com> |
To: | "'Andrew DeFaria'" <Andrew AT DeFaria DOT com>, <cygwin AT cygwin DOT com> |
References: | <12391292 DOT post AT talk DOT nabble DOT com> <005801c7eabb$cd519bd0$0a00a8c0 AT a64x23800p> <46D6462D DOT 1020203 AT holdenweb DOT com> <003401c7eb12$1bb53e70$0a00a8c0 AT a64x23800p> <fb6mq4$h5a$1 AT sea DOT gmane DOT org> |
Subject: | RE: How do I make scripts my PC executable |
Date: | Thu, 30 Aug 2007 10:38:07 -0700 |
Message-ID: | <000a01c7eb2c$87512940$0a00a8c0@a64x23800p> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <fb6mq4$h5a$1@sea.gmane.org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |