Tomas By <[email protected]>:

> In a Guile program I am using (system <string>) to start a C binary
> which I then communicate with over the network.
>
> I'm wondering if there is any way to get the process id of this binary?
>
> Have tried to call "ps -A|grep <name>" using with-output-to-string and
> with-error-to-string, but am not getting the system call output. Also,
> this is a very crude approach.
>
> Cannot find anything useful in the Guile manual.
>
> Perhaps there are some libaries with a more sophisticated system call
> API?

See (primitive-fork), (waitpid), (primitive-exit), (execl) et al at
<URL:
http://www.gnu.org/software/guile/manual/html_node/Processes.html>.


Marko

Reply via email to