[erlang-questions] Run external program with arguments

Yerl <>
Wed Nov 14 12:51:16 CET 2007


Hi !

Look here :

http://easyerl.blogspot.com/search/label/execution
http://easyerl.blogspot.com/search/label/process

There's a lot of good stuffs like using "ibTRE" regular expression engin ...
Good luck

cheers
Y.

Alexander Zhukov a écrit :
> Hi!
>
> Is there a way to run an external program from Erlang program with
> arguments?
>
> I like to be able to write something like this:
>
> Port = open_port({spawn, Ext_prog_name}, [stream, {args, ["-c", "file", "-d"]}]),
>
> but so far I can't find a way to run a program with arguments.
>
> Yes, I know I can write a wrapper script but I do not like such an
> approach.
>
>   




More information about the erlang-questions mailing list