From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: running perl script in eshell on windows permission denied Date: Sun, 09 Nov 2008 15:26:20 +0100 Organization: http://groups.google.com Message-ID: References: <1226006279.281771@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226241690 23015 80.91.229.12 (9 Nov 2008 14:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2008 14:41:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 15:42:33 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KzBUm-0006uh-Hq for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2008 15:42:32 +0100 Original-Received: from localhost ([127.0.0.1]:47082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzBTf-0003Io-0q for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2008 09:41:23 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp3-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:jbsG5wItMG9Wx6ccpyB+t1iSFyY= Original-Lines: 42 Original-NNTP-Posting-Date: 09 Nov 2008 15:26:19 MET Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1226240779 news-1.free.fr 10152 82.240.200.149:52084 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:164256 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59589 Archived-At: harven writes: > shul writes: > >> Andreas Politz wrote: >> >>> > OK. So what can I do to execute some perl scripts from eshell? >>> > I like eshell. It is so unix like... >>> > Thanks >>> > Mitchell >>> >>> The least you could try is >>> >>> $ perl me.pl >>> >>> ,but I guess there has to be a win32 equivalent to the unix chmod >>> command. But I don't know such things. >> >> Yes! >> >> perl me.pl >> works, which solves the real problem! >> >> however i am still curious why the eshell environment creates a >> 'execute protection' that does >> not exist in the native windows environment in the cmd.exe shell. >> after all me.pl runs >> in the cmd.exe shell and under M^X shell >> >> I guess it may be >> a carryover secondary to the universality of eshell, but it seems >> strange, since there seems >> to be no chmod command here.. >> >> thanks. > > The following function may be of some help here: > executable-make-buffer-file-executable-if-script-p > Don't know if it works in your environment though. There is also a command called executable-chmod in perl-mode. Hope that helps.