int info = pvm_catchout( FILE *ff )
Fortran call pvmfcatchout( onoff, info )
Each line of output has one of the following forms: [txxxxx] BEGIN
[txxxxx] (text from child task)
[txxxxx] END
The output from each task includes one BEGIN line and one END line, with whatever the task prints in between.
In C, the output file descriptor may be specified. Giving a null pointer turns output collection off. In Fortran, output collection can only be turned on or off, and is logged to stdout of the parent task.
If pvm_exit is called while output collection is in effect, it will block until all tasks sending it output have exited, in order to print all their output. To avoid this, output collection can be turned off by calling pvm_catchout(0) before calling pvm_exit.
pvm_catchout() always returns 0.
pvm_catchout(stdout);
Fortran:
CALL PVMFCATCHOUT( 1, INFO )