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
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
>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
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
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
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,
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
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