Subscribe Bookmark RSS Feed

How to use RunProgram with an external program based on a server?

anne_sa

Community Trekker

Joined:

Feb 24, 2016

Hello everybody,

 

I would like to know how I can call an external program stored in a server, with the RunProgram function.

I tried something like this:


RP = RunProgram(
    Executable(  "\\MyServer\SharedFolder\Program.exe"  ),
   ...

);
 

But I get the following error in the log:

"The network name cannot be found."

 

Does anybody have already done something like that?

 

Thanks in advance for your help!
 



 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Solution

Thanks, @anne_sa, that's significantly more complicated.

 

Run Program() will run programs on the local machine, so you'll need to find some program on the local machine that will connect to the remote machine (server) and execute the program you want to run. JMP doesn't have anything built-in to do that.

 

Perhaps you could use Telnet for this but I'm not an expert with that.

-Jeff
4 REPLIES
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Can you clarify a bit? 

 

Do you want the program to execute on the server?

 

Or, is the executable stored on a fileserver and you want to run it on the same computer as JMP by mounting that drive?

-Jeff
anne_sa

Community Trekker

Joined:

Feb 24, 2016

Jeff,

It is the first option: I would like to execute the program on the server.

Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Solution

Thanks, @anne_sa, that's significantly more complicated.

 

Run Program() will run programs on the local machine, so you'll need to find some program on the local machine that will connect to the remote machine (server) and execute the program you want to run. JMP doesn't have anything built-in to do that.

 

Perhaps you could use Telnet for this but I'm not an expert with that.

-Jeff
anne_sa

Community Trekker

Joined:

Feb 24, 2016

Ok Jeff so I'll try to do something like this and have a look at Telnet.

Thank you very much for your answer!