import subprocess myname=raw_input("myname=") subprocess.call(["pvcreate","/dev/",myname])
Output:[root@xxx siva]# python test1.py
myname=sdc
Device /dev/ not found.
Device sdc not found.
we are getting this error,but we can created with commands