Re: Same code cause the different result.

2012-04-25 Thread Jean-Michel Pichavant
叶佑群 wrote: 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 passwor

Re: Same code cause the different result.

2012-04-25 Thread Kushal Kumaran
On Wed, Apr 25, 2012 at 12:21 PM, 叶佑群 wrote: > 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 comma

Same code cause the different result.

2012-04-24 Thread 叶佑群
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