This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: chmod executable
- 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>
- Date: Fri, 12 Dec 2003 16:13:00 +0200
- Subject: Re: chmod executable
- References: <A84E6C6CE36DA64EB6613FCA94269DF64C680F@xcgca029>
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/