Workspaces/Advanced Features/ws find
Jump to navigation
Jump to search
ws_find - Find Workspace Path
ws_find prints the full path to a workspace. Essential for scripts and batch jobs.
Basic Usage
$ ws_find myWs # Print workspace path
Use in Scripts
Capture path in variable:
$ WORKSPACE=$(ws_find myProject) $ cd "$WORKSPACE"
In batch jobs:
#!/bin/bash #SBATCH --job-name=my_job WORKSPACE=$(ws_find myProject) cd "$WORKSPACE" ./my_program
This is the recommended way to locate workspaces in batch jobs. See Using Workspaces in Batch Jobs.
Options
- -F <filesystem> - Find workspace on specific filesystem
- -l - List available filesystem locations
Check Available Filesystems
$ ws_find -l # Show filesystem locations
See Filesystems guide for choosing the right filesystem.
For more information: ws_find -h or man ws_find