Page MenuHomec4science

remove_lanes.sh
No OneTemporary

File Metadata

Created
Mon, May 13, 06:17

remove_lanes.sh

#!/bin/bash
set -euo pipefail
# Script made from the page
# https://docs.ycrc.yale.edu/clusters-at-yale/guides/cryosparc/
script_path=$(dirname "$0") # relative
script_path=$(cd "${script_path}" && pwd) # absolutized and normalized
install_path="$HOME"/cryosparc
# set up some more paths
db_path=${install_path}/database
worker_path=${install_path}/cryosparc2_worker
echo "[Info] Starting the master if needed"
if [ $(${script_path}/cryosparcm.sh status | grep -c "CryoSPARC is not running") -eq 1 ]; then
${script_path}/cryosparcm.sh start
fi
old_lanes=$(${script_path}/cryosparcm.sh cli 'get_scheduler_lanes()' | grep -oP "(?<=')izar.*?(?=')")
for _lane in $old_lanes; do
${script_path}/cryosparcm.sh cli "remove_scheduler_lane('${_lane}')"
done
#${install_path}/cryosparc_master/bin/cryosparcm.sh stop

Event Timeline