Pass my system(ls) command to my another client to run
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.