Running a Command Line call on a remote system
Posted: Thu Apr 28, 2016 6:08 am
I have an application running on a remote server from switch which has a command line interface. Can anyone think of a way to call it remotely from switch along with some parameter data from within the flow?
For example if I was on the remote server I would call something like:
"C:\Program Files\Acme\Interface.exe" -input C:\Shared\Switch_Input\<job name> -parameter <switch metadata>
where <job name> was the switch job name, and <switch metadata> was some internal metadata value for that job.
The only thing I can think of is to create a batch script on a share on the remote server that takes a couple of input parameters and re-formats a local command call to do this call locally, but that seems clunky and difficult to get any usable error response.
Wondering if anyone has tried psexec or something like that from the scripting interface in switch.
For example if I was on the remote server I would call something like:
"C:\Program Files\Acme\Interface.exe" -input C:\Shared\Switch_Input\<job name> -parameter <switch metadata>
where <job name> was the switch job name, and <switch metadata> was some internal metadata value for that job.
The only thing I can think of is to create a batch script on a share on the remote server that takes a couple of input parameters and re-formats a local command call to do this call locally, but that seems clunky and difficult to get any usable error response.
Wondering if anyone has tried psexec or something like that from the scripting interface in switch.