Spawning processes on host OS with unix:cmd/1

per@REDACTED per@REDACTED
Fri Dec 7 21:23:58 CET 2001


Rick Pettit <rpettit@REDACTED> wrote:
>
>Is there a way to start a UNIX process from Erlang and get the pid?

I assume you don't want to interact with the program through a port
(otherwise unix:cmd() is not the way to go), but just get it running
independent from the Erlang system? Try this if so:

  unix:cmd("/your/program & echo $!")

(Nothing Erlang-specific really...:-)

--Per Hedeland
per@REDACTED



More information about the erlang-questions mailing list