
3.
HOW TO USE PROJECTS
Beams commands make use of the environment variables which point to directories in
wherein to write files or wherefrom to read files. Directly after login, these environment
variables have default the next values:
PG_BIN="/home/pg/bin"
PG_JOBS="/home/pg/jobs"
PG_LOG="/home/pg/log"
PG_PATTERNS="/home/pg/patterns"
PG_SCRIPTS="/home/pg/scripts"
The default directory is the home directory:
/home/pg, after the user ‘pg’ has logged in.
The ‘pg’ environment is created in the way that the ‘pg’-user can organize its data-files
into projects. This is organized with the tool ‘ce’ (change environment).
[pg@a217 pg]~> ce service
When the project “service” doesn’t exist, then “ce” asks for confirmation to create the
project. If the project already exist or when created by “ce” then the current directory
(pwd) is changed to:
/home/pg/users/service
Also the environment variables showed above, are changed into:
PG_BIN="/home/pg/users/service/bin"
PG_JOBS="/home/pg/users/service/jobs"
PG_LOG="/home/pg/users/service/log"
PG_PATTERNS="/home/pg/users/service/patterns"
PG_SCRIPTS="/home/pg/users/service/scripts"
There
is also a file “.service” in the “service”-project directory which will be executed every
time the user executes “ce service”. You can include any command in this file to make a
default setup when this project is entered.