SystemCall - Copying File Programming Software Development by Lilal … and not sure quite whats wrong. Need to do a systemcall from C program to copy a file, using stat, open… c++/unix fork(), fifo's, desperate need of help Programming Software Development by Funktar …; char* msgbuf; msgbuf = (char*)malloc(MSGSIZE+1); sprintf(msgbuf, "systemcall"); strcat(msgbuf, (char*)pid); int fdw = Open("syscallfifo… Re: c++/unix fork(), fifo's, desperate need of help Programming Software Development by Dogtree … same goes with your alternate solution: [code] sprintf(msgbuf, "systemcall%lu", (unsigned long)pid); /* strcat(msgbuf, (char*)pid); */ [/code… AS3 to PHP and back to AS3 Programming Web Development by patishere …; trace("Processing . . ."); vars.sysCall = "checkLogin"; vars.systemCall = "checkLogin"; vars.username = username.text; phploader.dataFormat = URLLoaderDataFormat… Re: SystemCall - Copying File Programming Software Development by Lilal Nevermind I fixed it woot :P <3 Just used a struct of file info to find the file size and looped through that. Steph Re: c++/unix fork(), fifo's, desperate need of help Programming Software Development by Dogtree >>strcat(msgbuf, (char*)pid); If you have to cast to char * then chances are good you're doing something wrong. ;) What type is pid? I'm guessing it's an int, and that would be a problem because typecasting doesn't make an integer into a string. Re: c++/unix fork(), fifo's, desperate need of help Programming Software Development by Funktar pid is a pid_t, pretty much like an int, just holds the process id, is there any other way to add this onto the end of my message? by the way, thanks for the fast reply, i will be checking for response about every 10 minutes or so. Re: c++/unix fork(), fifo's, desperate need of help Programming Software Development by winbatch if msg is a struct, why not just have an an int inside the struct to hold the pid and set it equal? Re: c++/unix fork(), fifo's, desperate need of help Programming Software Development by Funktar ya i guess i could add another int field, but wouldn't make a difference right now I can't get the message struct to send anyway. my main problem is with read/write.