[erlang-questions] Run external program with arguments

Alexander Zhukov azhukov@REDACTED
Wed Nov 14 11:43:38 CET 2007


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.

-- 
Alexander Zhukov



More information about the erlang-questions mailing list