【发布时间】:2015-11-29 08:20:57
【问题描述】:
我设置了一个 cron 任务来启动 ipython 笔记本服务器
#!/bin/bash
cd /home/.../.ipython/profile_nbserver
exec ipython notebook --profile=nbserver
当我手动运行此脚本时,我成功启动了 ipython 服务器,但是 crontab 无法启动它。我设置了一个日志文件,它是空的。
作为第二次尝试,我设置了一个/etc/init/myipython.conf 文件
description: "ipython"
exec /home/effectivespend/anaconda/bin/ipython notebook --profile=nbserver --notebook-dir=/home/effectivespend/.ipython/profile_nbserver
start on filesystem and net-device-up IFACE!=lo
但这也失败了。
甚至可以让服务器在后台运行 ipython 吗? crontab 不是正确的方法吗?
我基本上想启动它并通过远程计算机访问它。 (即https://address:8888)
谢谢
【问题讨论】:
标签: python ubuntu server ipython