Pass my system(ls) command to my another client to run [Archive] - C Board

PDA

View Full Version : Pass my system(ls) command to my another client to run


scchiw
05-29-2002, 01:35 AM
i wish to know how to pass the command like system(ls),system(mkdir) etc to my client.

in my server side i have the send(sd,(?),(?),0);

what to put in the (?) area in order to pass the command mentioned to my client to run.

I understand my client side need to have the
recv(mysock,buf,strlen(buf),0);---is that correct?

what is the way and any advise on this?

case: to ask client enter an char input and server process it and send teh desired command back to the client and perform the desired task in client's side.

thanks

Hammer
05-29-2002, 06:15 AM
Please don't cross post (http://www.cprogramming.com/cboard/showthread.php?s=&threadid=18704).