Workspaces/Advanced Features/ws find

From bwHPC Wiki
< Workspaces‎ | Advanced Features
Revision as of 15:16, 2 December 2025 by M Janczyk (talk | contribs) (Created page with "= ws_find - Find Workspace Path = <tt>ws_find</tt> returns the full path to a workspace, useful for scripts and automation. == Basic Usage == $ ws_find myWs This prints the full path to the workspace named <tt>myWs</tt>. == Options == * <tt>-F <filesystem></tt> - Search workspace on specific filesystem * <tt>-l</tt> - List valid filesystem names == Example in Scripts == $ WORKSPACE=$(ws_find myProject) $ cd "$WORKSPACE" This is particularly useful in ba...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ws_find - Find Workspace Path

ws_find returns the full path to a workspace, useful for scripts and automation.

Basic Usage

  $ ws_find myWs

This prints the full path to the workspace named myWs.

Options

  • -F <filesystem> - Search workspace on specific filesystem
  • -l - List valid filesystem names

Example in Scripts

  $ WORKSPACE=$(ws_find myProject)
  $ cd "$WORKSPACE"

This is particularly useful in batch job scripts where you need to locate a workspace that was created on the login node. See Using Workspaces in Batch Jobs for more details.

Checking Available Filesystems

  $ ws_find -l

Shows which filesystem locations are available for workspaces on your cluster. See Filesystems guide for more information about choosing filesystems.

For more information: $ ws_find -h or man ws_find