X-Spam-Check-By: sourceware.org From: "David Christensen" To: Cc: "'zip184'" References: <12391292 DOT post AT talk DOT nabble DOT com> Subject: RE: How do I make scripts my PC executable Date: Wed, 29 Aug 2007 21:11:11 -0700 Message-ID: <005801c7eabb$cd519bd0$0a00a8c0@a64x23800p> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <12391292.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com zip184 wrote: > I have some scripts I'd like to run without starting cygwin and > typing in their paths. Is there a way to make windows recognize that > a file is a bash/python script and run them like as if I ran them in > cygwin? I'd like to just be able to doubleclick them in windows > explorer. Is this possible? (I'm using bash and python scripts) I have a series of Cygwin Bash and Perl scripts for backing up my machines. I develop/debug them interactively using Cygwin Bash shells. Once everything works, I light them off using a shortcut pointing to a batch file that fires up Cygwin Bash and tells it to process the top-level Bash shell script: $ cat ssh-backup-all.bat C:\cygwin\bin\bash ./ssh-backup-all The top-level Bash shell script sets the environment up to match interactive login and then does it's job: $ cat ssh-backup-all #! /bin/sh . /etc/profile . /home/dpchrist/.bash_profile ##### do backup stuff 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/