Launch and executable file inside an Erlang Program

Salvador Alcaraz <>
Sat Jun 30 19:43:55 CEST 2001

The complete sintax of os:cmd/1 is:

CommandOut = os:cmd(command),

for example:

CommandOut = os:cmd("ls"),

execute the 'ls' command (I think, in background) and return the result as
a string.

I need that the command/application opens a new shell, execute its
instrucctions and when finish, it close the shell and return to Erlang

Is it possible?

Thank you


On Sat, 30 Jun 2001, Håkan Stenholm wrote:

> Why not use os:cmd/1, this will run a.out or any other 
> command/application in unix.

More information about the erlang-questions mailing list