BridgeSubmitDoc.tioga
Christian Le Cocq, June 23, 1987 5:53:08 pm PDT
BridgeSubmit: a Job Submit Package
DATOOLS 7.0 — FOR INTERNAL XEROX USE ONLY
BridgeSubmit: a simple way to use Unix from Cedar
Christian Le Cocq
© Copyright 1987 Xerox Corporation. All rights reserved.
Abstract: BridgeSubmit is a small package which adds a layer of sugar on top of the various Bridge interfaces so that a submission of a remote Job to Unix becomes easy.
Created by: Christian Le Cocq
Maintained by: Christian Le Cocq <LeCocq.pa>
Keywords: Bridge, Unix, remote.
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
Mode of operation
What kind of job is relevant ?
copy from Cedar to Unix n Input files,
execute a one line command (may be with ";" imbedded, but no CR)
copy from Unix to Cedar p Output files.
Use of the interface: one simple example
Store: BridgeSubmit.TransferProc ~ {
PROC [id, wDir: ROPE, s: IO.STREAM] RETURNS [msg: ROPE]
localName : ROPE ← Rope.Cat[wDir, id, ".input"];
remoteName: ROPE ← Rope.Cat[remoteDir, id, ".in"];
msg ← BridgeFTPOps.StoreFile[s, remoteName, localName, msgStream];
};
Retrieve: BridgeSubmit.TransferProc ~ {
PROC [id, wDir: ROPE, s: IO.STREAM] RETURNS [msg: ROPE]
localName : ROPE ← Rope.Cat[wDir, id, ".output"];
remoteName: ROPE ← Rope.Cat[remoteDir, id, ".out"];
msg ← BridgeFTPOps.RetrieveFile[s, remoteName, localName, msgStream];
};
msg ← BridgeSubmit.Register[id, cmd, wDir, Store, Retrieve ];
will store one input file on the vax, then execute the line cmd, then retrieve one output file.
Warnings
No control over the Unix side
There is no direct way to abort or request information from the other world. Login to the Unix machine and use Unix commands to do it.
No redirection of i/o of the remote shell
If the remote job issues relevant pieces of information on its stdio, you should redirect it to a file and transfer the file with other output files. No interactive input is provided either.