Running .exe program through Unix Command Prompt

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
samu
Charter Member
Charter Member
Posts: 16
Joined: Wed Aug 24, 2005 2:50 pm

Running .exe program through Unix Command Prompt

Post by samu »

We have a "Program.exe" which we are running manually and has two files as inputs i.e., MS-DOS>Program.exe input1.txt, input2.txt and we had installed .NET 2.0 to run this batch file since it is written in C sharp. This is all done on local windows computer where we have .NET installed.

But now we are trying to automate this step and for automation we are using Autosys and also running some DataStage jobs through shell scripting.

All we are looking is for a solution where we can run this "Program.exe" in our automated job flow either using Autosys or Unix shell scripting. So if any one has ideas of how we can do this that would be really great.

Thanks in advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The suffix ".exe" suggests that it is a Windows executable and therefore will not be executable in a UNIX environment.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I assume Ray is correct. You need to run a Windows program from UNIX. You can install UNIX utilities on Windows and run a remote shell like rsh. You can create an autosys process which waits for a file to show up in a directory. I also assume autosys is on both machines. So it waits for a UNIX file to show up and then runs your DOS program. Next autosys deletes the file when it is done.
Mamu Kim
Post Reply