By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,421 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,421 IT Pros & Developers. It's quick & easy.

net use commad using paramiko exec_command

P: 1
Expand|Select|Wrap|Line Numbers
  1. command = "net use" + " * " + "\\" + sharepath+ " " + "password" + " " + "/u:"+"domainname" + "\\username"
  2.  
  3. sshconnObj.exec_command(command)
my intention is to execute this command in windows . i see the command formation is correct but it gives me error :
syntax error for net use command

when i try thr same command maually it works in windows
Nov 7 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.