Skip to main content

I have a workflow that one of the steps it would run an executable that is located on a different server.  Is that even possible?  it would need to run it from the command line in order to pass the correct parameters.  If running it remotely is not possible is running it locally possible?

This executable is for the Tidal Enterprise Scheduler CLI tool so that we can update jobs.

 

We are running BlackPearl 4.6.9

The first thing I recommend is taking a step back and removing K2 from the equation. What you are asking isn't a K2 specific question, but rather a question of how can a user on one server run an executable on another server.

 

My intial hunch is I would look  at PowerShell as the most likely candidate. Get that scenario working as an interctive user then think about how you would transition that into K2. A quick google and I found this link which might be a good place to start: http://windowsitpro.com/powershell/use-powershell-run-programs-remote-computers

 

There is a broker on market for executing scripts or you can use a code event in the workflow to execute the script as well if that ends up being the path you follow.

 

Get the moving parts worked out and then try to figure out how to do it in K2 it will make thinking through the problem easier.

 

Hope this helps.

 

S.

 

 


Agree 100% with Scott... this is not a question for "K2 on remotely execution".

 

What you can do is to is to Install the PowerShell Service Object from the Market Yes I wish BlackPearl include it by default in their solution, but works great ]. Then you will have the ability of execute a local PowerShell Script from your server directly.

 

http://community.k2.com/t5/K2-blackpearl/I-wonder-if-is-possible-to-create-a-SMO-Service-instance-from/m-p/88200#M27481

 

Now what is going to be the scope of that PowerShell... is a different ball game... and surely a question for PowerShell & C# Forum.

 

Good luck, hope this helps.

Dino.


Reply