delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/28/13:27:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Chuck DOT Irvine AT mail DOT sprint DOT 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 AT cygwin DOT com
CC: ntemacs-users AT cs DOT washington DOT edu

--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 AT yahoo DOT 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 DOT Irvine AT mail DOT sprint DOT 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--

- Raw text -


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