• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask: how to launch a binary as if I launched it via terminal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask: how to launch a binary as if I launched it via terminal?


  • Subject: Re: NSTask: how to launch a binary as if I launched it via terminal?
  • From: Colas <email@hidden>
  • Date: Mon, 14 Apr 2014 17:59:01 +0200

Unfortunately, it is not working. Gnuplot is complaining.

! Package pgfplots Error: Sorry, the gnuplot-result file ‘myFile.pgf-plot.t
able' could not be found. Maybe you need to enable the shell-escape feature? Fo
r pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplo
t <file>.gnuplot' manually on the respective gnuplot file..

(I give the option —shell-escape to pdflatex)
The error I get in xcode is

[;sh: gnuplot: command not found.

Thanks also for the idea of -setEnvironment. I will try.

Le 14 avr. 2014 à 17:43, Bryan Vines <email@hidden> a écrit :

> Colas,
>
> If my previous code snippet doesn’t work with pdflatex, NSTask has a -setEnvironment method; it may allow you to set your task’s environment variables.
>
> —
> Bryan Vines
>
>
> On Apr 14, 2014, at 10:40 AM, Colas <email@hidden> wrote:
>
>> My problem is that I want to launch pdflatex with the -shell-escape option. This option allows pdflatex to launch itself other programs. But, when pdflatex, in this context (I mean, launched via NSTask), tries to launch gnu plot, it fails. Whereas the same commands, typed in a terminal, succeed.
>>
>> My guess (and others’) is that it is a problem of environment variables.
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTask: how to launch a binary as if I launched it via terminal?
      • From: Colas <email@hidden>
References: 
 >NSTask: how to launch a binary as if I launched it via terminal? (From: Colas B <email@hidden>)
 >Re: NSTask: how to launch a binary as if I launched it via terminal? (From: Colas <email@hidden>)
 >Re: NSTask: how to launch a binary as if I launched it via terminal? (From: Bryan Vines <email@hidden>)

  • Prev by Date: Re: NSTask: how to launch a binary as if I launched it via terminal?
  • Next by Date: Re: NSTask: how to launch a binary as if I launched it via terminal?
  • Previous by thread: Re: NSTask: how to launch a binary as if I launched it via terminal?
  • Next by thread: Re: NSTask: how to launch a binary as if I launched it via terminal?
  • Index(es):
    • Date
    • Thread