于 2012-9-29 19:53, Kushal Kumaran 写道:
On Sat, Sep 29, 2012 at 6:18 AM, 叶佑群 wrote:
于 2012-9-28 16:16, Kushal Kumaran 写道:
On Fri, Sep 28, 2012 at 1:15 PM, 叶佑群 wrote:
Hi, all,
I have the shell command like this:
sfdisk -uM /dev/sdb<< EOT
,1000,83
,,83
EOT
I have
于 2012-9-28 16:16, Kushal Kumaran 写道:
On Fri, Sep 28, 2012 at 1:15 PM, 叶佑群 wrote:
Hi, all,
I have the shell command like this:
sfdisk -uM /dev/sdb<< EOT
,1000,83
,,83
EOT
I have tried subprocess.Popen, pexpect.spawn and os.popen, but none of
these works, but when I typ
于 2012-9-28 16:16, Kushal Kumaran 写道:
On Fri, Sep 28, 2012 at 1:15 PM, 叶佑群 wrote:
Hi, all,
I have the shell command like this:
sfdisk -uM /dev/sdb<< EOT
,1000,83
,,83
EOT
I have tried subprocess.Popen, pexpect.spawn and os.popen, but none of
these works, but when I typ
Hi, all,
I have the shell command like this:
sfdisk -uM /dev/sdb << EOT
,1000,83
,,83
EOT
I have tried subprocess.Popen, pexpect.spawn and os.popen, but none
of these works, but when I type this shell command in shell, it is works
fine. I wonder how to emulate this type o
Hi, all
I have code as:
/pobj = subprocess.Popen (["smbpasswd", user], stdin
=subprocess.PIPE)
password += "\n"
pobj.stdin.write (password)
pobj.stdin.write (password)/
the command smbpasswd will change the samba user's password, In
shel