> 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

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`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bpmflow.gitbook.io/project/orbeon-integration/orbeon-persistence-layer-for-gemstone-s/manage-persistence-layer/workwith-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
