03-31-2021 05:25 PM
Based on my research this question gets asked every once in a while. But unfortunately, none of the responses are applicable, so I figured I'd ask it again.
I need to run an executable remotely on the remote machine. The application is not LabVIEW and there is no LabVIEW related items on the remote machine. I can access the machine and use system exec to run the executable remotely, but this causes the application to run on my local machine and not the remote.
I've seen some suggestions regarding getting other programs and what not and this is not an option. And from what I can tell ActiveX requires the target have LV RTE or something.
Is there not a simple CMD command that allows me to call an executable remotely? All in the same line?
03-31-2021 07:14 PM
@DailyDose
Is there not a simple CMD command that allows me to call an executable remotely? All in the same line?
I sure hope not!
Think that through 1 more time. Then go ahead and reconnect the network cable you ripped out in a blind panic when you realized what you asked to be able to do. If you DO find a way to just hijack some other machine. Please don't do it.
04-01-2021 02:54 PM
Install SSH on your LabVIEW machine, install and set up a SSH server on the remote machine. Open the channel, send the ssh command to the remote.
I did this 5 or 6 years ago on a Windows 7 setup. At that time I need a bit more functionality so I installed Cygwin on the remote to have a bash-like shell to work with. With Windows 10- pro you might get the same with the Linux subsystem.
Dirk
04-02-2021 11:05 AM - edited 04-02-2021 11:10 AM
@JÞB wrote:
Think that through 1 more time. Then go ahead and reconnect the network cable you ripped out in a blind panic when you realized what you asked to be able to do.
Okay, I thought it through... and my question remains. If Windows has given you the option to open up or close your machine to share files, videos, pictures, music, anything sensitive... then Windows would give you the option to open up your machine to allow remote application execution. And I'm not even talking about one guy in California to Florida remote. I mean direct LAN connection. I imagine a username and password would be required.
04-02-2021 11:33 AM
04-02-2021 01:22 PM
I keep seeing this PSEXEC. I guess that's the route to go.
04-03-2021 11:59 AM
I don't know if that is the way to go for sure. I do know remotely starting software on other PC's is not a LabVIEW question, but at a much higher level of networking and administrator controls for a PC. I know it can be done because IT will force the execution of programs on my PC from time to time. They have one or more tools at their disposal to do that. One I know they use is LANDesk. I don't know what else they might use.