在Slurm上运行Stata作业,但出现错误:找不到Stata:命令
这是我的sbatch文件:在Slurm上运行Stata作业,但出现错误:找不到Stata:命令,stata,slurm,Stata,Slurm,这是我的sbatch文件: #!/bin/bash #SBATCH --output=stata_example.out #SBATCH --error=stata_example.err #SBATCH --nodes=1 module load stata stata do stata_example.do 但它总是返回错误:stata:command not found。 我试过“stata mp”或“stata se”“stata ic”, 或者“stata-b stata_exa
#!/bin/bash
#SBATCH --output=stata_example.out
#SBATCH --error=stata_example.err
#SBATCH --nodes=1
module load stata
stata do stata_example.do
但它总是返回错误:stata:command not found。
我试过“stata mp”或“stata se”“stata ic”,
或者“stata-b stata_example.do”。
但它返回相同的错误信息。
有人能帮忙吗?即使您键入模块列表并出现Stata,您也可能需要确定适当的路径 在我的例子中,它是
模块加载sloan/stata/15/mp
我建议您与管理员联系,找出合适的路径。尝试命令的完整路径。您可以通过
类型stada
看到它。模块加载
命令是否发出错误?我尝试将完整路径添加到stata
,但返回时退出代码为126“权限被拒绝”。我使用“模块加载”没有问题。我输入了模块列表
它将返回“1)Stata”