This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chmod executable


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]