我正在linux远程服务器上使用TORQUE资源管理器来运行多个作业。我使用的软件需要X11来显示/保存图形。我收到错误消息:
Thermo-Calc: cannot connect to X server
我使用的.q文件如下。我将-X添加到q文件中,但是没有起作用,因为-X不在正确的位置。
#!/bin/bash
# Begin PBS directives
#PBS -l -X walltime=1:00:00
#PBS -l nodes=1
#PBS -j oe
# End PBS directives and begin shell commands
cd $PBS_O_WORKDIR
echo Directory is `pwd`
/opt/Thermo-Calc/2019b/Console.sh files_gen/BB1_PP1_TT1.TCM
我还测试了以下命令。它也无法正常工作并收到相同的错误消息。
sub -X /opt/Thermo-Calc/2019b/Console.sh files_gen/BB1_PP1_TT1.TCM
有人建议将export DISPLAY=:0.0
添加到.bash_profile
中。但是此解决方案也不起作用。
我该如何解决?