- Modify your script/tool to callxgSubmit.exe and (optionally) xgWait.exe so that processes whose execution you wish to distribute are queued in the Grid Engine queue.
- Run the script/tool with IBConsole.
- Copy your script to a new location.
- Place each command that is to be run via Incredibuild within an xgSubmit call.
- Create any Groups needed for sequential processing.
- Add any necessary xgWait statements to the script, associating each of them with the appropriate Group(s) or all Groups.
- Save the new script and run it using IBConsole (supplying either a command line for the Job, or the name of the batch file).
- It is not mandatory for all statements to be converted into xgSubmit tasks. They can remain in the script in their original form. Incredibuild will execute them on the local machine in a sequential manner.
Example 1
A batch script such as this one can easily be modified for Incredibuild. DummyProcess.exe 3000DummyProcess.exe 2500DummyProcess.exe 2500 DummyProcess.exe 3000DummyProcess.exe 2800DummyProcess.exe 2000 (See the sample supplied in the Samples directory.) In order to instruct Incredibuild to execute each of the above commands using remote helper machines, change the script file as follows (Batch File 4tasks.bat): xgSubmit /ForceRemote /group=Group1 /caption=Task1-Group1 /commandDummyProcess.exe 3000xgSubmit /ForceRemote /group=Group1 /caption=Task2-Group1 /command
DummyProcess.exe 2500xgSubmit /ForceRemote /group=Group1 /caption=Task3-Group1 /command
DummyProcess.exe 2500xgWait /group=Group1xgSubmit /ForceRemote /group=Group2 /caption=Task4-Group2 /command
DummyProcess.exe 3000xgSubmit /ForceRemote /group=Group2 /caption=Task5-Group2 /command
DummyProcess.exe 2800xgSubmit /ForceRemote /group=Group2 /caption=Task6-Group2 /command
DummyProcess.exe 2000xgWait /group=Group2 In order to execute the script file using Incredibuild (assuming the script name is 4tasks.bat), execute the following command: xgConsole “4tasks.bat” /openmonitor