You can customize the following environment variables used through the oph_term:
export OPH_TERM_PS1=yellow export OPH_USER=oph-test export OPH_PASSWD=abcd export OPH_SERVER_HOST=server.hostname export OPH_SERVER_PORT=11732 export OPH_EXEC_MODE=sync export OPH_NCORES=4 export OPH_TERM_VIEWER=coloured export OPH_TERM_FORMAT=classic export OPH_TERM_IMGS=open export OPH_GRAPH_LAYOUT=horizontal_compact export OPH_RESPONSE_BUFFER=1024 export OPH_WORKFLOW_AUTOVIEW=on
server.hostname is the hostname of Ophidia Server node. You can set it to 127.0.0.1 for an all-in-one instance of Ophidia platform.
Description of environment variables:
OPH_TERM_PS1 ← color of the prompt (default is red) OPH_USER ← username to be used to access Ophidia Server OPH_PASSWD ← password to be used to access Ophidia Server OPH_SERVER_HOST ← IP address/DNS name of the host where Ophidia Server is running OPH_SERVER_PORT ← port number of Ophidia Server OPH_SESSION_ID ← identifier of current session (initialized after the first remote request) OPH_EXEC_MODE ← execution mode: async for asynchronous mode (default) or sync for synchronous mode OPH_NCORES ← number of cores per task to be used by default (if the variable is not set then 1 core per task will be adopted) OPH_CWD ← current working directory (default is /home/<user>) OPH_DATACUBE ← current value of parameter "cube" (taken from output of operators that create a new datacube) OPH_TERM_VIEWER ← output renderer: dump (view output as it is, in json format), basic (view output in tabular format), coloured (basic + colors), extended (same as basic + info about data sources, consumers, producers, objkeys...), extended_coloured (extended + colors) OPH_TERM_FORMAT ← format of the command 'view': classic (print all the data in JSON Response), compact (print the JSON Response without the Workflow Task List); OPH_TERM_IMGS ← save and/or auto-open images created from graphs/trees originated by some operators; set to "no_op" (images are not created), "open" (images are created, saved on disk and automatically opened) or "save" (images are created and saved on disk but not opened) OPH_GRAPH_LAYOUT ← node arrangement within images (horizontal vs vertical) OPH_RESPONSE_BUFFER ← maximum size (in kB) of the buffer used to store a JSON Response OPH_WORKFLOW_AUTOVIEW ← automatic and periodic rendering of workflow status after submission; the option can be activated only in case of asynchronous execution and auto-opened images
Additional information on these variables can be obtained by using the on-line help as in the following example:
OPH_TERM > help OPH_WORKFLOW_AUTOVIEW
Login parameters can be specified at startup with command line options:
-u ← OPH_USER -p ← OPH_PASSWD -H ← OPH_SERVER_HOST -P ← OPH_SERVER_PORT
These values overwrite corresponding values set into the user environment.