> For the complete documentation index, see [llms.txt](https://bpmflow.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bpmflow.gitbook.io/project/orbeon-integration/orbeon-persistence-layer-for-gemstone-s/manage-persistence-layer/workwith-script.md).

# workwith script

This section explain how to use workwith.sh script.

In all cases the first script to use is **workwith.sh** this script will set all needed session variables for others scripts to use.\
`cd scriptsFolder  "in this case: /home/gemstone/GsDevKit_home/shared/repos/OrbeonPersistenceLayer/scripts"`\
`. ./workwith.sh -s devKit_354 -v 3.5.4`

This will print the following output:\
`STONE_NAME: devKit_354` \
`GS_VERSION: 3.5.4` \
`GEMSTONE: /home/gemstone/GsDevKit_home/shared/downloads/products/GemStone64Bit3.5.4-x86_64.Linux` \
`GS_CONF_FILE: /home/gemstone/GsDevKit_home/server/stones/devKit_354/extents/system.conf GS_BACKUPS: /home/gemstone/GsDevKit_home/server/stones/devKit_354/backups` \
`GS_EXTENTS: /home/gemstone/GsDevKit_home/server/stones/devKit_354/extents` \
`GS_TRANLOGS: /home/gemstone/GsDevKit_home/server/stones/devKit_354/tranlogs` \
`GS_LOGS: /home/gemstone/GsDevKit_home/server/stones/devKit_354/logs` \
`GS_CLEAN_EXTENT: /home/gemstone/GsDevKit_home/shared/downloads/products/GemStone64Bit3.5.4-x86_64.Linux/bin/extent0.dbf`

Each of these session variables are used in other scripts so they must be defined. If you are runnung more than one Stone you can switch between then using this script:\
`. ./workwith.sh -s devKit_354 -v 3.5.4`\
`./collectGarbage.sh`\
`./backup.sh -f my-backup-01-01-2019`\
`.....`\
`. ./workwith.sh -s devKit_361 -v 3.6.1`
