Python session 4 subprocess- by Gopal.A (Python developer)

33 %
67 %
Information about Python session 4 subprocess- by Gopal.A (Python developer)
Education

Published on March 8, 2014

Author: naveent20

Source: slideshare.net

Python Execute Unix / Linux Command l There are two modules in python to excute the linux commands. l 1. os module 2. subprocess module l

l syntax: l subprocess.call(args, *, stdin=None, stdout=None, stderr=None, shell=false)

l PASSING ARGUMENTS

l SUBPROCESS.POPEN( ) - STDOUT AND STDERR

l Popen.communicate() interacts with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached.

SHELL VALUE

Add a comment

Related presentations