NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand powershell python ssh

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" + "."

0 Kudos
Message 1 of 3
(56 Views)

This sounds like a problem with escaping characters... 

I find this a bit tricky as well

0 Kudos
Message 2 of 3
(37 Views)

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

 

Oli_Wachno_0-1740149084095.png

 

Leaving out the /" within an expression seems to help TestStand resolving this....

 

0 Kudos
Message 3 of 3
(28 Views)