system() without window
okibi
okibi at ratedo.com
Wed Jul 11 11:11:30 PDT 2007
Does system() (within std.process) not work on linux? I was under the impression that it did.
I'll look into that, thanks!
Regan Heath Wrote:
> okibi wrote:
> > I tried your method for popen and i get "Symbol undefined" errors. I also tried this code:
> >
> > extern (C) {
> > typedef void FILE;
> > FILE* popen(char* cmd, char* type);
> > int pclose(FILE* stream);
> > }
> >
> > and get the same errors.
> >
> > Any ideas?
>
> Ahh, I was mistaken; popen only works on UNIX. You need to code up
> something with CreateProcess. I recall someone else posted a popen
> implementation for windows once..
>
> http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=14470
>
> Maybe that will help.
>
> Regan
More information about the Digitalmars-d-learn
mailing list