Chandan, that's not really within Globus' scope. Globus is just the resource management layer of your grid: it submits jobs and transfers files. It does not coordinate your jobs for you. Now, to solve your problem, you have several options:
(1) Hack up a shell script that does the coordination for you using the globus command-line tools. If you have a shared filesystem, you can just periodically check for the output file of job one and start job two as soon as the first one appears. If you don't have shard filesystem, you have to come up with some sort of coordination mechanism, e.g., through sockets, rpc, ... (2) Use a Grid API (e.g. SAGA) to do the same thing in a more elegant and portable way. E.g. SAGA supports Globus + coordination mechanisms through the same API. (3) Get all fancy and use a workflow system like GridANT or SWIFT. They allow you to model data and control dependencies between jobs. Admittedly, this approach is like taking a sledgehammer to crack a nut, an the learning curve is quite high. But it's an option. Hope that helps. Cheers, Ole On Feb 1, 2011, at 11:02 AM, Chandan Maheshwari wrote: > Sir, > > I have one application which is composed of two executables now the thing is > that the second executable takes the output of the first. Also the second > executable need not to wait for the completion of the first. Suppose if the > first exe is going to generate 5 output files[that i know previously, though > it is not fixed] then as soon as the first output file is created the second > exe can start run. > > Now I want to run this on the grid. So I have submitted my application > through globus. In the jt file the executable contains the first exe. now > suppose the job is submtted to some resource. then as soon as the condition > favors for the execution of the second exe[means that the first exe has > generated the one file out of the number it has to generate] it should start > running. Now the second job should go on the basis of the availability of the > resource may or may not on the resource in which the first exe is running. > > How we can run these types of jobs on the grid. > > Thanks > > -- > Regards, > Chandan > Ole Weidner Informatics Forum - Room IF5.24 10 Crichton Street Edinburgh EH8 9AB United Kingdom [email protected]
