Skip to content

Commit f5165d8

Browse files
committed
save
1 parent db4318a commit f5165d8

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/python-tutorial.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Test.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,5 @@
99
f = os.popen('date')
1010
now = f.read()
1111
print ("Today is ", now)
12-
##subprocess.call(["cat", "/etc/resolv.conf"])
12+
subprocess.call(["cat", "/etc/resolv.conf"])
1313

14-
cmdping = "ping -c2 peshal.com.np"
15-
p = subprocess.Popen(cmdping, shell=True, stderr=subprocess.PIPE)
16-
while True:
17-
out = p.stderr.read(1)
18-
if out == '' and p.poll() != None:
19-
break
20-
if out != '':
21-
sys.stdout.write(out)
22-
sys.stdout.flush()

0 commit comments

Comments
 (0)