From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4395 Path: main.gmane.org!not-for-mail From: Slawek Zak Newsgroups: gmane.comp.tex.context Subject: Re: metapost not invoked? mpgraph.1 not created Date: 15 Mar 2001 12:10:12 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <86elvzp9t7.fsf@office.admaster.pl> References: <3.0.6.32.20010220125344.01cc87b0@server-1> <3.0.6.32.20010220174002.00afa980@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035395066 25431 80.91.224.250 (23 Oct 2002 17:44:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:44:26 +0000 (UTC) Cc: Marc van Dongen , Ed L Cashin , Patrick Gundlach , ConTeXt Original-To: Hans Hagen Xref: main.gmane.org gmane.comp.tex.context:4395 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4395 Hans Hagen writes: > Hi, > > >Again, I missed Hans' original query, so I don't know if this > >is relevant. > > It may be relevenat. I hope that the three of you can sort it out, so that > the solution can go into the faq. I don't know whether this is not the same problem I've had. When you uncompress the context archive it doesn't have the +x bits which make the scripts being executable. In texexec 2.5 you have: sub RunPerlScript { my ($ScriptName, $Options) = @_ ; if ($dosish) { if (-e "$TeXScriptsPath$ScriptName.pl") { system ("perl $TeXScriptsPath$ScriptName.pl $Options") } } else { system ("$ScriptName $Options") } } Which makes perl try to run the script on UNIX systems without checking if it's executable (texutil was -x in my case) and, which is more problematic, doesn't check for possible execution errors. I've proposed some time ago to change the call to something like: ... if (! -x $ScriptName) { die("Nonexecutable script, fix the permisions for $ScriptName\n"); } else { system ("$ScriptName $Options") or die $!; } ... What do you think? /S