Commit 23c8475b authored by Katharina Höflich's avatar Katharina Höflich

Grep Jupyter URL by hostname instead of token keyword

parent 5cd27206
......@@ -33,9 +33,10 @@ if [ -n "${1}" ]; then
if [ "$status" == 'Queued' ]; then
echo $(qstat ${1} -f | echo "$(grep 'Planned Start Time')")
else
remote_host=$(qcat -o -b -n25 ${1} | grep -m1 -e 'host'); remote_host=${remote_host//'host '}
qstat ${1} -f | echo "scale=2; $(string=$(grep 'Remaining Elapse'); echo ${string//[!0-9]})/60" | \
echo "$(bc) minutes remaining elapse time at" $(qcat -o -b -n25 ${1} | grep -m1 -e 'host') &&
qcat -o -b -n25 ${1} | grep -m1 -e 'token' || echo 'Jupyter Lab not yet properly running... please wait.'
echo "$(bc) minutes remaining at execution host ${remote_host}" &&
qcat -o -b -n25 ${1} | grep -m1 -e '://${remote_host}:' || echo 'Jupyter Lab not yet properly running... please wait.'
fi
else
cd $PBS_O_WORKDIR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment