[racket] Processes : system*
The difference may be the current directory. When you use `system*',
the program path is used as-is; there's no search through the PATH
environment variable as the shell would search, and a relative path is
used relative to the current directory.
Trying either using an absolute path or use `find-executable-path' to
search PATH.
At Tue, 12 Apr 2011 14:52:21 +0200, David Delfieu wrote:
> hello all,
>
> I'm having some trouble using system* to run executable compiled from a racket
> program :
>
> In a racket program defining a gui, i put the call :
> (system* "Penelope_parsed_file" (change-ext f_xml "xml" "par"))
>
> Where "Penelope_parsed_file" is a compiled executable of a racket program, and
> (change... ) is a file name, parameter of the command.
>
> In interactive mode, my program work fine. When i try to compile it (in every
> mode), the execution of my compiled progrm gives an error :
>
> MacBook-David-4:~ david$
> /Users/david/Documents/Mes_Developpements/Penelope/1.4/Penelope ; exit;
> (object:button% ...)
> (object:button% ...)
> (object:button% ...)
> racket: exec failed (-1)
>
> Questions :
>
> - Is it possible to call executable with parameters in compiled code ?
>
> - Can you give me advises to call programs from gui ?
>
> Respectuously,
>
> *******************************************************
> David Delfieu,
> Polytech'Nantes - Electrical departement
> IRCCyN
> *******************************************************
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users