[erlang-questions] Run external program with arguments

Alexander Zhukov azhukov@REDACTED
Wed Nov 14 18:05:49 CET 2007


>>>>> Bjorn Gustavsson (BG) writes:

 BG> Alexander Zhukov <azhukov@REDACTED> writes:
 >> In summary, os:cmd does not allow to communicate with called
 >> program, and open_port does not allow to specify arguments to run
 >> program with.

 BG> open_port({spawn,"ls -l"}, []).

Great! I had thought about such a possibility but forget to make an
expirement ;( Now I've made a test. It really works.

Thank you very much.

 BG> /Bjorn -- Björn Gustavsson, Erlang/OTP, Ericsson AB
 BG> _______________________________________________ erlang-questions
 BG> mailing list erlang-questions@REDACTED
 BG> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 
Alexander Zhukov



More information about the erlang-questions mailing list