SocketServer: Bonus: simple python socket client

SocketServer: Bonus: simple python socket client

瀏覽:1355
日期:2025-05-01
#! /usr/bin/env python import SocketServer, subprocess, sys from threading import Thread my_unix_command = ['bc'] HOST = 'localhost' PORT = 2000 def pipe_command(arg_list, standard_input=False): "arg_list is [command, arg1, ...], standard_input is string ...看更多