Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62445372
remove_lanes.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, May 13, 06:17
Size
832 B
Mime Type
text/x-shellscript
Expires
Wed, May 15, 06:17 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17616090
Attached To
rSCCRYOSPARC scitas-cryosparc-scripts
remove_lanes.sh
View Options
#!/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
Log In to Comment