X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <787dcac20801131641m59f7161ehf8bb2e1fcfbddc30 AT mail DOT gmail DOT com> <478B653E DOT 4010903 AT byu DOT 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 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 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/