[erlang-questions] What's the best way to interface with the shell/console?
Richard Carlsson
richardc@REDACTED
Sat Jun 6 12:18:31 CEST 2009
G.S. wrote:
> What's the fastest and best way to write console/shell commands through the
> interpreter ? (for linux).
I guess you want os:cmd("..."), as in:
1> os:cmd("ls").
"AUTHORS\nbin\nbootstrap\nconfig.log\nconfig.status\nconfigure\nconfigure.in\nEPLICENCE\nerts\nlib\nmake\nMakefile\nMakefile.in\nmk.log\notp_build\nprebuilt.files\nREADME\nREADME.win32\nxcomp\n"
2>
/Richard
--
"Having users is like optimization: the wise course is to delay it."
-- Paul Graham
More information about the erlang-questions
mailing list