![]() |
Python server/client remote execution question
I'm working on a project in Python that I'm having trouble with. I've asked so many people but they seem to not be able to help me :/ I'm coding a little program that executes system commands. The idea is that one machine opens the server and the other one opens the client and connects to the IP / Port. From there they can execute system commands and obtain the output. Only problem is, with the output, I get something like this:
Code:
Enter a command: lsServer.py: Code:
import sys, socketCode:
import sys |
You only coded the communication part. There is no code on the server to execute the command. Look at the subprocess module to achieve the execution of commands.
|
| All times are GMT +1. The time now is 03:49 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.