[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: system calls
From: |
Marko Rauhamaa |
Subject: |
Re: system calls |
Date: |
Wed, 02 Sep 2015 06:42:37 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Tomas By <address@hidden>:
> 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
- system calls, Tomas By, 2015/09/01
- Re: system calls,
Marko Rauhamaa <=