我在远程服务器上运行一个使用 nohup 的 python 脚本。
其次,我使用以下命令运行 python 脚本:
nohup python backmap.py mpirun -np 48 &
python 脚本包含以下几行:
frame = []
file_in = open("Traj_equil_prot.pdb", "r")
for line in file_in:
if line.startswith('TITLE'):
frame.append(line[127:134])
import os
for fileNum in range(631, 29969):
os.system("./initram-v5.sh -f Traj_equil_prot_frame" + str(fileNum) + ".pdb -o Traj_equilprot_aa_frame" + str(frame[fileNum]) + ".gro -to amber -p topol.top")
Run Code Online (Sandbox Code Playgroud)
脚本一整天都运行得很好。但现在它刚刚崩溃,当我再次尝试重新启动它时,出现以下错误:
回溯(最近一次调用最后一次):文件“”,第 1 行,在 IOError 中:[Errno 5] 输入/输出错误
该文件位于工作目录中。我尝试再次断开/连接,但仍然是同样的问题。我不知道我错过了什么。请问有什么帮助吗?
python ×1