【问题标题】:command in .bashrc file cannot be executed correctly when submitted a pbs job.bashrc 文件中的命令在提交 pbs 作业时无法正确执行
【发布时间】:2014-04-28 18:21:37
【问题描述】:

我有一个脚本可以在 bash shell 中提交作业,看起来像

#!/bin/bash
# PBS -l nodes=1:ppn=1
#PBS -l walltime=00:30:00
#PBS -N xxxxx

但是,在我提交作业后,我在xxxxx.e8980 文件中收到如下错误消息:

/home/xxxxx/.bashrc: line 1: /etc/ini.modules: No such file or directory

但是文件/etc/ini.modules 在那里。为什么系统找不到?

非常感谢!

【问题讨论】:

  • 它是否存在于作业最终运行的机器上?
  • 请执行这两个命令并报告它们的输出: 1. file /etc/ini.modules 2. head /etc/ini.modules
  • 你好,其他人,文件不存在,我想这可能是原因,非常感谢!
  • 嗨aqn,我认为原因是当我提交文件时,本地节点没有文件ini.modules。非常感谢!

标签: bash shell module pbs


【解决方案1】:

在将提交到集群的作业中引用文件时,您必须将作业强制到具有该文件的特定节点,或者确保该文件存在于集群中的所有计算节点上。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多