User CLI for working with Projects (2)
4) To start a consumer and consumer process:
$ sam start consumer --appfamily=RecoApp --version=3.1415925
--group=d0group_a --rtfile=cid.out
$ sam start process --cid=`cat cid.out` --rtfile=cpid.out
(note that the second command uses CID returned by the first command into the rtfile.)
5) To request next file from the project set:
$ sam get next file --cid=`cat cid.out` --cpid=`cat cpid.out`
--rtfile=file.out
This command uses consumer ID (CID) and consumer process ID (CPID) as returned from (3). It writes the name of the input file into file.out. If the contents of the file is the string "END OF STREAM", proceed to step 8.
6) What the user does with the input file whose name is in 'file.out', is not of SAM's concern. When she is done, inform the project master:
$ sam release --file=`cat file.out` --status={ok|error}