delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/12/09:13:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 12 Dec 2003 16:13:00 +0200
From: Baurjan Ismagulov <ibr AT ata DOT cs DOT hun DOT edu DOT tr>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: chmod executable
Message-ID: <20031212141258.GM9734@ata.cs.hacettepe.edu.tr>
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <A84E6C6CE36DA64EB6613FCA94269DF64C680F AT xcgca029>
Mime-Version: 1.0
In-Reply-To: <A84E6C6CE36DA64EB6613FCA94269DF64C680F@xcgca029>
User-Agent: Mutt/1.5.4i

Hello, Samuel.

On Fri, Dec 12, 2003 at 06:07:23AM -0800, Yang, Samuel wrote:
> I loaded cygwin on to my NT machine at work and want to create a workable
> executable file which has commnads like: sort, grep, etc.  
> How do you make the file executable like the unix machine?

Do you mean shell script?

cat >aaa.sh <<EOF
echo hello
EOF
chmod 755 aaa.sh
./aaa

Hope this helps,
Baurjan.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019