Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Subject: execute permissions on a text file To: cygwin AT cygwin DOT com Message-ID: From: Oddvar DOT Myrnes AT stoltoffshore DOT no Date: Thu, 20 Jun 2002 11:12:41 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii I have a problem using a ksh scripts which reads in a command file. The script was developed on HP and runs fine on LINUX. But on cygwin the script can't execute. It reports: SQL: - cannot execute - permission denied The SQL command file it tries to execute is a simple comand file with one command: isql -U$user -P$passwd "$@" Cygwin refuses to set execute permission on the file if it does not find a #!/bin/ksh (or any shell) at the first line. The ksh context in which the command file is executed in: function LSDB { SQL <<-EndSQL SELECT database_names=name FROM sysdatabases go EndSQL } Does anybody know what I can do to fix this? Oddvard Myrnes PS: Please reply to my private adress aswell as the list. I am not a member of the list and receives no mails from it. --------------------------------------------------------------------------- This message may contain confidential information that is legally privileged and is intended only for the use of the parties to whom it is addressed. If you are not an intended recipient you are hereby notified that any disclosure, copying, distribution or use of any information in this e-mail is strictly prohibited. If you receive this message in error please notify the sender by return e-mail. All information and attachments remain the property of Stolt Offshore Group and should be held as confidential. --------------------------------------------------------------------------- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/