Feb-07-2017, 09:33 PM
Hi everyone
I am trying to call a python script on a Windows client ( Win32-OpenSSH with Python 3.x) from a Linux Server over ssh.
The Windows python script is very simple containing a simple print command.
ssh CONNECT-STRING(-i, domain, username, host) cmd.exe /c python.exe d:\\windir\output_test.py
-> no print output
ssh CONNECT-STRING(-i, domain, username, host) python.exe d:\\windir\output_test.py
-> print output
Unfortunately i need to use the first implementation because our job-server script executor is defined this way (using cmd.exe /c).
Maybe somebody could give me a explanation why the first implementation does not return the print output.
Is there any kind of way in order to return to make it running?
Please excuse my english.
Thank you very much for your help.
Cheers jb
I am trying to call a python script on a Windows client ( Win32-OpenSSH with Python 3.x) from a Linux Server over ssh.
The Windows python script is very simple containing a simple print command.
ssh CONNECT-STRING(-i, domain, username, host) cmd.exe /c python.exe d:\\windir\output_test.py
-> no print output
ssh CONNECT-STRING(-i, domain, username, host) python.exe d:\\windir\output_test.py
-> print output
Unfortunately i need to use the first implementation because our job-server script executor is defined this way (using cmd.exe /c).
Maybe somebody could give me a explanation why the first implementation does not return the print output.
Is there any kind of way in order to return to make it running?
Please excuse my english.
Thank you very much for your help.
Cheers jb