Re: [paramiko] Error msg

2010-07-29 Thread John Fano
OK I first checked the output code... ssh j...@myhost /cygdrive/c/test/shares.bat; echo "Exit status is: $?" C:\cygwin\home\john>net share test2$=c:\test\testfolder test2$ was shared successfully. Exit status is: 0 The exit status for trying to reshare a folder is 2 and the exit status for shar

Re: [paramiko] Error msg

2010-07-27 Thread Moritz Beber
On 27/07/10 14:13, John Fano wrote: Hi Everyone, I recently found Paramiko and it's a great fit for my project. However I am having an issue running a command remotely. I have a windows machine running Cygwin with OpenSSH. Basically I am touching a batch file and adding net share commands to i

Re: [paramiko] Error msg

2010-07-27 Thread John Fano
>From what I have seen in the past in some of my other scripts it should return 0 for success with text output "SHARENAME was share successfully." When ever the net share command fails it returns a error number 4 digits long as well as a text message about searching for help. I ran ssh j...@myhos

Re: [paramiko] Error msg

2010-07-27 Thread Charles Duffy
Well, we can test that theory pretty easily: $ ssh j...@myhost /cygdrive/c/test/shares.bat; echo "Exit status is: $?" ___ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko

Re: [paramiko] Error msg

2010-07-27 Thread Eric Noulard
2010/7/27 John Fano : > Hi Everyone, > > I recently found Paramiko and it's a great fit for my project. > However I am having an issue running a command remotely.  I have a > windows machine running Cygwin with OpenSSH.  Basically I am touching > a batch file and adding net share commands to it.  O

Re: [paramiko] Error msg

2010-07-27 Thread John Fano
Thanks for the quick feedback. I ran ssh j...@myhost /cygdrive/c/test/shares.bat It returned the following: C:\cygwin\home\john>net share test2$=c:\test\testfolder test2$ was shared successfully. So yes, it still behaves differently. John :-) -- "Any people, nation,

Re: [paramiko] Error msg

2010-07-27 Thread Charles Duffy
When testing manually, instead of doing this: $ ssh acco...@host > run_command do this: $ ssh acco...@host run_command The latter approach will more accurately model what exec_command() is doing. Do you still get different behavior between Paramiko and OpenSSH? On Tue, Jul 27, 2010 at 7:13 AM

[paramiko] Error msg

2010-07-27 Thread John Fano
Hi Everyone, I recently found Paramiko and it's a great fit for my project. However I am having an issue running a command remotely. I have a windows machine running Cygwin with OpenSSH. Basically I am touching a batch file and adding net share commands to it. Once I am done I want to execute t