Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99789799
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
Sun, Jan 26, 15:40
Size
923 B
Mime Type
text/x-shellscript
Expires
Tue, Jan 28, 15:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23855351
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
echo
"[Info] Obtaining the old lanes"
old_lanes
=
$(${
script_path
}
/cryosparcm.sh cli
"get_scheduler_lanes()"
| grep -oP
"(?<=')izar.*?(?=')"
)
echo
$old_lanes
echo
"[Info] Removing the old lanes"
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