to get process id

nobody nobody_member at pathlink.com
Tue May 23 03:31:22 PDT 2006


Hello,

i try to get the process id with Regan's programm
process.d and pipestream.d under linux dmd 154 .

mport lib.process;
import std.stdio;
import std.string;

void main()
{
Process proc;
proc = new Process("echo $$");
writef(proc.readLine());
}
// dmd pro.d lib/process.d lib/pipestream.d 

I get 92 error massage.
Here are the first one:

dmd pro.d lib/process.d lib/pipestream.d
pro.d(9): class lib.process.Process member readLine is not accessible
lib/process.d(335): declaration lib.process.Process.splitArgs.delims is already
defined
lib/process.d(363): undefined identifier fcntl
lib/process.d(363): undefined identifier F_SETFD
lib/process.d(363): function expected before (), not fcntl of type int
lib/process.d(364): undefined identifier fcntl
lib/process.d(364): undefined identifier F_SETFD
lib/process.d(364): function expected before (), not fcntl of type int
lib/process.d(365): undefined identifier fcntl
lib/process.d(365): undefined identifier F_SETFD
lib/process.d(365): function expected before (), not fcntl of type int

and so on.

Maybe someone have an example that run under linux.







More information about the Digitalmars-d-learn mailing list