Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78336

how to execute the following command using python

Newsgroups comp.lang.python
Date 2014-09-25 05:28 -0700
Message-ID <27d70eda-ea9d-40d7-a00e-1b9f943df8cd@googlegroups.com> (permalink)
Subject how to execute the following command using python
From pradeepatjob@gmail.com

Show all headers | View raw


Hi group,

 I am trying to mount a remote network to my Ubuntu system.  
 
The remote machine keeps on changes or it is given by the user whoever wants to use my script.
  
 so , user enters what to mount.

 I found following command and it is running successfully when I execute using shell. 

the command:
echo -e 'ubuntumachinepassword/\nremotemachinepasword' | sudo --stdin sshfs root@remoteip:/remotesystem/folder/  /localmountpoint / -o workaround=rename -o password_stdin -o allow_other

but when i used this in
os.system(abovecommad)
 i was not successfull.

 any help on this?

thanks & regards
Pradeep Kumar

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

how to execute the following command using python pradeepatjob@gmail.com - 2014-09-25 05:28 -0700
  Re: how to execute the following command using python Chris Angelico <rosuav@gmail.com> - 2014-09-25 22:42 +1000

csiph-web