Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chuck.Irvine@mail.sprint.com
X-OpenMail-Hops: 1
Date: Sun, 28 Jan 2001 12:27:14 -0600
Message-Id: <H00009db08493ddb.0980706433.kcopmp06@MHS>
Subject: RE: awk permissions related problem - manual-entry --> awk: permission denied
MIME-Version: 1.0
TO: cygwin@cygwin.com
CC: ntemacs-users@cs.washington.edu
Content-Type: multipart/mixed; boundary="openmail-part-1e321b8c-00000001"

--openmail-part-1e321b8c-00000001
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
	;Creation-Date="Sun, 28 Jan 2001 12:27:14 -0600"
Content-Transfer-Encoding: 7bit

Hi Earnie,

Deleting and re-creating the link resulted in the same problem.

The other approach, if I understood correctly, resulted in a different 
problem. I deleted the awk link and created a script named awk with the 
contents:

----------------------------------
#!/bin/sh
gawk $*
-----------------------------------

This errored out with the *Man <cmdName>* buffer showing:

--------------------------------------
/usr/bin/awk: gawk.exe: permission denied

process exited abnormally with code 126
-------------------------------------------

and the *Messages* buffer showing:

------------------------------------------------------------
...
Invoking man chmod in the background
Please wait: making up the chmod man page...
chmod man page made up
error in process sentinel: *Man chmod*: process exited abnormally with 
code 126 [2 times]
------------------------------------------------------------

Finally, I tried one more workaround. I deleted the awk script and just 
copied gawk.exe to awk.exe. Interestingly, I got more or less the same 
problem. The contents of the *Messages* buffer were:

---------------------------------------------
Invoking man chmod in the background
Please wait: making up the chmod man page...
chmod man page made up
error in process sentinel: *Man chmod*: process exited abnormally with 
code 126 [2 times]
-----------------------------------------------------

and the contents of the *Man <cmdName>* buffer were:

---------------------------------------------------
awk: permission denied

process exited abnormally with code 126
--------------------------------------------------------

BTW, man from a bash shell works without problem

Thanks for you help.

Chuck


> -----Original Message-----
> From: earnie.boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Sunday, January 28, 2001 9:51 AM
> To: Chuck.Irvine
> Cc: cygwin; ntemacs-users
> Subject: Re: awk permissions related problem - manual-entry --> awk:
> permission denied
> 
> 
> Chuck.Irvine@mail.sprint.com wrote:
> > 
> > I recently (a week or two ago) downloaded a newer verion of 
> cygwin and
> > now I'm unable to use the ntemacs command "manual-entry" (used to
> > display man pages). When I invoke this command, emacs 
> complains "awk:
> > permission denied; process exited abnormally with code 
> 126". I checked
> > permissions on /bin/awk, which is a symbolic link to /bin/gawk, and
> > they are lrw-r--r--. Permissions on gawk are -rwxr-xr-x. I tried
> > setting CYGWIN to ntsec and adding execute permission to 
> awk, but this
> > didn't solve my problem.
> > 
> > Any help is greatly appreciated.
> > 
> 
> What happens if you
>   cd /bin
>   rm awk
>   ln -s gawk.exe awk.exe
> ?
> 
> Why not just change the script to #!/bin/gawk ?
> 
> Earnie.
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 


--openmail-part-1e321b8c-00000001
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
--openmail-part-1e321b8c-00000001--

