X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <787dcac20801131641m59f7161ehf8bb2e1fcfbddc30@mail.gmail.com> <478B653E.4010903@byu.net>
Subject: RE: How can I run a script?
Date: Mon, 14 Jan 2008 13:42:03 -0000
Message-ID: <032e01c856b3$3f406a60$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <478B653E.4010903@byu.net>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 14 January 2008 13:36, Eric Blake wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to BB on 1/13/2008 5:41 PM:
>> can login to a shell from windows and run commands but how do I create a
>> script 
> 
> A script is just a file containing the commands that you would have run
> from the shell, optionally prefixed by something like a #!/bin/sh line to
> specify the intepreter of those commands.

  It might help to chmod it +x if it doesn't "just work" (although that should
only be necessary under fairly rare circumstances).

  Also if you use a windows-based editor like notepad or wordpad (write),
you'll need to run "d2u" on the file to convert the line-endings from
DOS-style CR/LF to unix-style LF-only before it'll work correctly.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

