cron - jupyter nbconvert 执行到 html cron 作业不起作用
问题描述
我有这个 .sh 安排在 cron (ubuntu 18) 中:
#!/bin/sh
wget -O x/doc1.csv https://www.x.com
wget -O x/doc2.csv https://www.y.com
jupyter nbconvert --execute --to html x/notebook.ipynb
前两行运行完美,但 jupyter 行没有。如果我在终端中直接使用 ./ 执行 .sh ,它的性能会很好。任何想法?
解决方案
我只是将路径添加到命令并且它起作用了:
#!/bin/sh
wget -O x/doc1.csv https://www.x.com
wget -O x/doc2.csv https://www.y.com
/home/pakin/anaconda3/bin/jupyter nbconvert --execute --to html
x/notebook.ipynb
推荐阅读
- python - Pandas 重新采样和箱线图(seaborn)
- django - 如何在 GeoDjango 中启用街景
- report - MS 报表生成器单元命令
- mariadb - 如何在 Workbench ERP 的表上设置 CHARACTER SET 和 COLLATE SET?
- nokogiri - 我无法在 JRUBY 上安装 Nokogiri
- android - 在没有root的情况下使用USB tethering时,如何从Android 11上的APP为我的手机设置静态IP地址?
- javascript - Cant find variable - parameter add function with firestore
- sql - BigQuery:包含多行的 UNNEST 结果
- html - 如何将弹出窗口放在叠加层上
- php - woocommerce 订阅在另一个地方添加续订按钮