From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17739 invoked by alias); 6 Feb 2011 11:24:27 -0000 Received: (qmail 17732 invoked by uid 22791); 6 Feb 2011 11:24:27 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_MK,TW_RW,TW_WX,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f171.google.com (HELO mail-wy0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 Feb 2011 11:24:21 +0000 Received: by wyb38 with SMTP id 38so3943413wyb.2 for ; Sun, 06 Feb 2011 03:24:19 -0800 (PST) Received: by 10.216.90.79 with SMTP id d57mr1138179wef.65.1296991457286; Sun, 06 Feb 2011 03:24:17 -0800 (PST) Received: from localhost (173.136.18.95.dynamic.jazztel.es [95.18.136.173]) by mx.google.com with ESMTPS id o19sm1502651wee.26.2011.02.06.03.24.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 06 Feb 2011 03:24:15 -0800 (PST) Date: Sun, 06 Feb 2011 11:24:00 -0000 From: David Sastre To: cygwin-talk@cygwin.com Subject: Re: How to run bash shell script in cygwin? Message-ID: <20110206112413.GA12243@jethro.local.lan> References: <11690723.post@talk.nabble.com> <30854132.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <30854132.post@talk.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Vulgar and Unprofessional Cygwin-Talk List Mail-Followup-To: cygwin-talk@cygwin.com X-SW-Source: 2011-q1/txt/msg00009.txt.bz2 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1404 On Sat, Feb 05, 2011 at 02:39:05PM -0800, Jose.Torres wrote: >=20 > Hi myuser01, > On a bash or similar shell, you need to include the location to the > executable file in order to execute it. If the executable directory is not > in one of your bin folders you can execute it as part of your PATH.=20 >=20 > try the following: >=20 > $ pwd > $ echo $PATH > $ export $PATH=3D$PATH;`pwd` ^ > Other people may prefer a .bashrc or similar .bash_profile files.=20 >=20 > I found this post on google when searching for executing bash files in > apache. (sic) > http://old.nabble.com/How-to-run-bash-shell-script-in-cygwin--to11690723.= html#a11690723 Don't use this link! It is a loopback-wormhole! > Regards, > Jose Torres >=20 > myuser01 wrote: > >=20 > > I have a script called "batchjob" that looks like this: > > #!/bin/bash > > echo 'I was here' > >=20 > > -rwxr-xr-x 1 c10066 mkpasswd 48 Jul 19 09:30 batchjob > >=20 > > But when I try to execute it from the cygwin shell I get this:=20 > > $ batchjob > > bash: batchjob: command not found > >=20 > > How do i execute a bash shell script from within cygwin? > >=20 > > Thanks >=20 > --=20 > View this message in context: http://old.nabble.com/How-to-run-bash-shell= -script-in-cygwin--tp11690723p30854132.html Don't do that!=20 LOL --=20 Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 198 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1OhN0ACgkQYX05bESLMeu+1ACgtlAeU5ugPzt6uiegUAVSGJGH jyYAnRS5yuApJnli6mBlcf04lp7CroLI =/Vs4 -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--