Commit 78f3ce9a authored by sfux's avatar sfux
Browse files

Update start_jupyter_nb.sh

parent 9732a4fd
......@@ -123,6 +123,24 @@ remoteip=$(ssh $USERNAME@$CHOSTNAME "cat /cluster/home/$USERNAME/jnbip | grep -m
remoteport=$(ssh $USERNAME@$CHOSTNAME "cat /cluster/home/$USERNAME/jnbinfo | grep -m1 token | cut -d '/' -f 3 | cut -d ':' -f 2")
jnbtoken=$(ssh $USERNAME@$CHOSTNAME "cat /cluster/home/$USERNAME/jnbinfo | grep -m1 token | cut -d '=' -f 2")
if [[ "$remoteip" == "" ]]; then
echo -e "Error: remote ip is not defined. Terminating script."
echo -e "Please login to the cluster and check with bjobs if the batch job is still running."
exit 1
fi
if [[ "$remoteport" == "" ]]; then
echo -e "Error: remote port is not defined. Terminating script."
echo -e "Please login to the cluster and check with bjobs if the batch job is still running."
exit 1
fi
if [[ "$jnbtoken" == "" ]]; then
echo -e "Error: token for the jupyter notebook is not defined. Terminating script."
echo -e "Please login to the cluster and check with bjobs if the batch job is still running."
exit 1
fi
echo -e "Remote IP address: $remoteip"
echo -e "Remote port: $remoteport"
echo -e "Jupyter token: $jnbtoken"
......
Supports Markdown
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