Download LCG-2 USER GUIDE

Transcript
fi
# And we are done
echo -e "\n----------------------------------"
echo "The temporary files have been deleted, and the listener process killed"
echo "The interactive session ends here "
exit 0
Note that, before exiting, the script removes the temporary pipe files and kills the listener process.
This must be done either inside the script or manually by the user if the - -nolisten option is used
(otherwise, the X window or text console interfaces created by edg-job-submit will do it automatically).
Now, let us see what the result of the interaction is:
$ dialog.sh \
/tmp/listener-IxKsoi8I7fXbygN56dNwug.in \
/tmp/listener-IxKsoi8I7fXbygN56dNwug.out \
/tmp/listener-IxKsoi8I7fXbygN56dNwug.err \
7335
Interactive session started
---------------------------------Welcome!
Please tell me your name: Antonio
That is all, Antonio.
Bye bye.
***********************************
*
INTERACTIVE JOB FINISHED
*
***********************************
---------------------------------The temporary files have been deleted, and the listener process killed
The interactive session ends here
Until now, several options for the edg-job-submit command used for interactive jobs have been
explained; but there is another command that is used for this kind of jobs. It is the edg-job-attach
command.
Usually, the listener process and the X window are started automatically by edg-job-submit. However, in the case that the interactive session with a job is lost, or if the user needs to follow the job
from a different machine (not the UI), or on another port, a new interactive session can be started with
the edg-job-attach command. This commands starts a listener process on the UI machine that is attached to the standard streams of a previously submitted interactive job and displays them on a dedicated
window. The - -port <port number> option specifies the port on which the listener is started.
CERN-LCG-GDEIS-454439
LCG-2 User Guide
Page 54