Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~16.7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for ljjfb

Hi all professionals, I uesd subprocess module to spawn a new process and then implement the command. The final result is the output via stdout. Here is the code I wrote: [CODE] import subprocess proc = subprocess.Popen('egrep '^HTTP/' *', shell=True, stdout=subprocess.PIPE,) stdout_value = proc.communicate()[0] print 'results:' print stdout_value [/CODE] And …

Member Avatar for richieking
0
189
Member Avatar for ljjfb

Hello, all professionals I aim to create three scripts (one in Host, the other two in 2 different Guests) realizing server vs multi-clients communications. There is a file in my Host system, what I propose to do is transmitting lines in that file to different Guests. Following is the raw …

Member Avatar for ljjfb
0
172
Member Avatar for ljjfb

Hello, all professionals, I used subprocess.Popen to launch a process, right now I am planning to shut it down after a given time. Can I use subprocess.kill() to fulfill that? (I do not know how to do that cuz every time I will receive a error message.) [CODE] import subprocess …

Member Avatar for ljjfb
0
16K
Member Avatar for ljjfb

Hello, all professionals, I have a question about using python to pass argv to another script. And here's the problem: I have installed a Virtual Machine(Windows XP) in my Host system. Right now, I propose to create a script located in my Host system to pass a argument to the …

Member Avatar for ljjfb
0
137