The following procedure describes how to create a batch file called cleanup.bat. This file is called by the Node Release task in the DemoJob example. cleanup.bat contains two commands: the first command copies data from the compute node to a file on the head node; the second command deletes the file on the compute node.
|To create cleanup.bat|
Click Start, point to All Programs, click Accessories, then click Notepad.
Type following text, where \\headnodeR2\c$\Users\Public\taskDemo.bat is a shared location that is accessible to all compute nodes:
type prep.txt >> \\headnodeR2\c$\Users\Public\taskDemo.txt del prep.txt
Name the file as cleanup.bat. Be sure to select All Files under Save as type.
Save the file to a shared location that is accessible to all compute nodes for example, \\headnodeR2\c$\Users\Public\cleanup.bat.
Continue to Step 2: Create and Submit DemoJob.