I m running on a remote server a python script using nohup.
- First I connected to the remote machine using a VPN and SSH
Second I run a python script using the following command:
nohup python backmap.py mpirun -np 48 &
The python script contains the following lines:
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")
The script was running just fine the whole day. but now it just crashed and when I try to re-launch it again I'm getting the following error:
Traceback (most recent call last): File "", line 1, in IOError: [Errno 5] Input/output error
The file is in the working directory. I tried to disconnect/connect again but still the same problem. I don't know what I'm missing. Any help, please?
file_in
– Leisaleiser