[erlang-questions] how to call os:cmd("ls") from shell?
yerl@REDACTED
yerl@REDACTED
Wed Jul 11 11:06:25 CEST 2007
echo 'os:cmd("ls").' | erl
cheers
Y.
----Message d'origine----
>Date: Wed, 11 Jul 2007 14:06:43 +0800
>De: "Jeremy Chow" <erlanging@REDACTED>
>A: erlang-questions@REDACTED
>Sujet: [erlang-questions] how to call os:cmd("ls") from shell?
>
>hi list,
>
>I fellowed the otp document, but it failed.
>
># erl -s os cmd ls
>
>Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]
>[kernel-poll:false] [lock-checking]
>
>{"init terminating in
>do_boot",{function_clause,[{os,validate1,[[ls]]},{os,cmd,1},{init,start_it,1},{init,start_em,1}]}}
>
>Crash dump was written to: erl_crash.dump
>
>
>Thx,
>Jeremy
>_______________________________________________
>erlang-questions mailing list
>erlang-questions@REDACTED
>http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list