02-20-2025 01:41 PM
Hi I am have issue ssh and python program in remote machine using Test stand sequence and PowerShell. I am wondering if it is supported.
I am calling PowerShell.exe in TestStand Sequence. Sending following parameter:
"ssh" + "user@Ubuntu" + "\"/home/userName/pyenv//shims/python\"" + "\"~/test.py\"" + "."
I get error code -17500
TerminatorExpectedAtEndofString
When I run same command in PowerShell it is OK
PS> ssh + user@Ubuntu + "/home/userName/pyenv//shims/python" + "~/test.py" + "."
02-21-2025 12:18 AM
This sounds like a problem with escaping characters...
I find this a bit tricky as well
02-21-2025 08:46 AM
Just stumbled over a simlilar issue: when assigning strings to paramaters, there is some kind of magic going on
I just threw a part of your command string into a part of my code and tried to see what TestStand does
Leaving out the /" within an expression seems to help TestStand resolving this....