linux - execute virtual environment with nohup
问题描述
I looking to execute a virtual environment on a server to run my analyses. These analyses take a lot of time (min 3 days). So I want use nohup to run my commande.
source activate qiime2-2019.1
nohup qiime feature-classifier classify-consensus-vsearch \
--i-query OTU-marion.qza \
--i-reference-reads CO1-midori-20180221-seqs.qza \
--i-reference-taxonomy CO1-midori-20180221-taxo.qza \
--p-perc-identity 0.97 \
--p-min-consensus 0.85 \
--o-classification 5-classify-OTU-marion-vsearch.qza &
But I can't execute my virtual environment with nohup and when I close the server's prompt my commande abort ...
nohup source activate qiime2-2019.1
nohup: inputs are ignored and output is appended to 'nohup.out'
nohup: cannot execute command 'source': No file or folder of this type
Anyone know how I can do this ? Thanks Marion
解决方案
Blusky 的解决方案似乎有效!
您是否尝试过将 qiim 命令的源代码激活命令放在同一个 bash 脚本中,并尝试 nohup bash 脚本
推荐阅读
- c# - 在c#中识别所有类型的压缩文件
- ios - 谷歌地图未在 Flutter 的 IOS 设备中加载
- postgresql - Phoenix Ecto 模型嵌套
- go - 为什么我的两个切片之一因“运行时错误:索引超出范围”而恐慌?
- javascript - React 中用于引导和 css 模块的模板文字
- c# - .NET Core 3.1 控制台应用程序作为 Windows 服务
- sql-server - 循环 XML 数据
- jquery - 按钮上的toggleClass动态Jquery
- docker - 为什么 nginx 没有在 Windows Server 2019 docker 容器中启动?
- javascript - jQuery Ajax 多次提交表单