Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote execution of program

Status
Not open for further replies.

jcarrott

Programmer
May 28, 2009
130
US
I have a Process Flow that is controling a series of programs and the timing of their execution that runs on a UNIX server. It works fine up to a point.

I have a Java program on a virtual Windows server that reads my Oracle tables and generates a collection of .pdf files via a Crystal Report template. This java program is created as a .jar file, so it is complete and if I type the file name at the DOS prompt it works great.

The problem is how to remote into the Virtual Windows server from the UNIX server, change directory, and execute the Java program.

I was looking at using;
exec { 'D:\Eclipse\EdiInvoice.jar' } 'HEAD', $url;

The problem with that is that I need more than the 'url' - I also need the user id and password.

Does anybody have an ideas??
 
use Net::Telnet;

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top