Last active
April 27, 2020 12:54
-
-
Save andmax/4ac60b8196b05a4ef2f65051dd29ad04 to your computer and use it in GitHub Desktop.
Useful crontab and start scripts on a GPU server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On: /etc/crontab | |
SHELL=/bin/bash | |
@reboot deepstation /home/deepstation/start_jupyter.sh | |
@reboot deepstation /home/deepstation/start_tensorboard.sh | |
On: /home/deepstation/start_jupyter.sh | |
#!/bin/bash | |
source /home/deepstation/anaconda3/etc/profile.d/conda.sh | |
conda activate base | |
nohup jupyter notebook --port 9114 --ip * &> /home/deepstation/jupyter_notebook_base.log & | |
conda activate tf-gpu | |
nohup jupyter notebook --port 9115 --ip * &> /home/deepstation/jupyter_notebook_tf_gpu.log & | |
On: /home/deepstation/start_tensorboard.sh | |
#!/bin/bash | |
source /home/deepstation/anaconda3/etc/profile.d/conda.sh | |
conda activate tf-gpu | |
nohup tensorboard --logdir /home/deepstation/tb_logs --host 0.0.0.0 &> /home/deepstation/tensorboard.log & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment