delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/20/14:55:41

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
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C83A9CD1@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms AT icon-scm DOT com>
To: "'Oddvar DOT Myrnes AT stoltoffshore DOT no'" <Oddvar DOT Myrnes AT stoltoffshore DOT no>,
cygwin AT cygwin DOT com
Subject: RE: execute permissions on a text file
Date: Thu, 20 Jun 2002 20:51:22 +0200
MIME-Version: 1.0

Hi Oddvar,

is this a cygwinized isql that understands posix paths?
I only used Informix and Oracle SQL files under HP-UX
and they never needed execute permission, since they
are simply read as files.
Try echo "$@", run with this filename in an interactive bash/(a)sh,
and also at a DOS prompt and play with cygpath!
Does isql without any args even start up in a shell script?

Bye, Heribert (heribert_dahms AT icon-scm DOT com)

> -----Original Message-----
> From:	Oddvar DOT Myrnes AT stoltoffshore DOT no [SMTP:Oddvar DOT Myrnes AT stoltoffshore DOT no]
> Sent:	Thursday, June 20, 2002 11:13
> To:	cygwin AT cygwin DOT com
> Subject:	execute permissions on a text file
> 
> 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.
> 

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

- Raw text -


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