同时使用nohup进行挂机运行
# 模拟数据+nonhup
args = sys .argv # 设置传入参数
start = int(args[1])
end = int(args[2])
for N in [200,409]: # 设置的模拟条件
for I in [30,40]: # 设置的模拟条件
for rep in range(start,end+1): # 重复次数
# 生成数据代码
# 模型代码
# 返真性
在服务器终端键入,同时日志文件保存在log文件
# 服务器终端
# conda activate envir_ 激活环境
nohup python sim.py 1 2 > 1_2.log 2>&1 &
nohup python sim.py 3 4 > 3_4.log 2>&1 &
nohup python sim.py 5 6 > 5_6.log 2>&1 &
nohup python sim.py 7 8 > 7_8.log 2>&1 &
nohup python sim.py 9 10 > 9_10.log 2>&1 &
nohup python sim.py 11 12 > 11_12.log 2>&1 &
nohup python sim.py 13 14 > 14_13.log 2>&1 &
nohup python sim.py 15 16 > 15_16.log 2>&1 &