Skip to content
Permalink
Browse files
Add files via upload
  • Loading branch information
aa3025 committed Oct 24, 2023
1 parent fcd3038 commit 5f6af870285b40b7a4b97f8a9ab56c4c2db3f7a2
Showing 1 changed file with 6 additions and 1 deletion.
@@ -156,6 +156,8 @@ if document.getElementById("cpus").Value>128 then
MsgBox "128CPUS max"
document.getElementById("cpus").Value=128
Exit Sub
else
ncpus="-N1 -n " & cpus.Value
end if
'document.getElementById(1).disabled = true
@@ -195,9 +197,12 @@ if (document.getElementById("exist_job").checked = false) Or host.Value = "" the
newjob=1


'msgbox(cpus.Value)
if (document.getElementById("docker").checked = false) then
cmd="..\tools\plink.exe -t -ssh " & middleman & ".coventry.ac.uk -l " & login.Value & " -pw " & pass.Value & " " & chr(34) & "rm -fr ~/.cache/sessions; J=$(sbatch " & nnodes & feature & exclude_nodes & include_nodes & " -t " & runtime.Value & ":00:00 /share/apps/slurm/vnc.slurm); JOBID=$(grep -o " & chr(34) & "[0-9]" & chr(34) & " <<< $J | tr -d " & chr(39) & "\n" & chr(39) & "); echo $JOBID >~/VNCJOB; echo Your VNC Job $JOBID is submitted to the queue... you will be connected when the job will be RUNNING; echo ; squeue -u " & login.Value & " -j $JOBID; while [[ " & chr(34) & "$STATE" & chr(34) & " != " & chr(34) & "R" & chr(34) & " ]] ; do STATE=$(" & state_cmd & "); sleep 2; done; echo ; echo Your job seems now RUNNING! Let us check again...; echo ; echo ; squeue -j $JOBID; cat ~/vnc.log; echo ; echo Note above the Target Node for your VNC Session. If you requested more than ONE node, you need to connect to the FIRST node in the above node list.; echo ; echo You can close this window and continue...; " & chr(34)
cmd="..\tools\plink.exe -t -ssh " & middleman & ".coventry.ac.uk -l " & login.Value & " -pw " & pass.Value & " " & chr(34) & "rm -fr ~/.cache/sessions; J=$(sbatch " & ncpus & feature & exclude_nodes & include_nodes & " -t " & runtime.Value & ":00:00 /share/apps/slurm/vnc.slurm); JOBID=$(grep -o " & chr(34) & "[0-9]" & chr(34) & " <<< $J | tr -d " & chr(39) & "\n" & chr(39) & "); echo $JOBID >~/VNCJOB; echo Your VNC Job $JOBID is submitted to the queue... you will be connected when the job will be RUNNING; echo ; squeue -u " & login.Value & " -j $JOBID; while [[ " & chr(34) & "$STATE" & chr(34) & " != " & chr(34) & "R" & chr(34) & " ]] ; do STATE=$(" & state_cmd & "); sleep 2; done; echo ; echo Your job seems now RUNNING! Let us check again...; echo ; echo ; squeue -j $JOBID; cat ~/vnc.log; echo ; echo Note above the Target Node for your VNC Session. If you requested more than ONE node, you need to connect to the FIRST node in the above node list.; echo ; echo You can close this window and continue...; " & chr(34)
'msgbox(cmd)

else
cmd="..\tools\plink.exe -t -ssh " & middleman & ".coventry.ac.uk -l " & login.Value & " -pw " & pass.Value & " " & chr(34) & "rm -fr ~/.cache/sessions; J=$(sbatch " & nnodes & feature & exclude_nodes & include_nodes & " -t " & runtime.Value & ":00:00 /share/apps/docker/start_docker.slurm); JOBID=$(grep -o " & chr(34) & "[0-9]" & chr(34) & " <<< $J | tr -d " & chr(39) & "\n" & chr(39) & "); echo $JOBID >~/VNCJOB; echo Your VNC Job $JOBID is submitted to the queue... you will be connected when the job will be RUNNING; echo ; squeue -u " & login.Value & " -j $JOBID; while [[ " & chr(34) & "$STATE" & chr(34) & " != " & chr(34) & "R" & chr(34) & " ]] ; do STATE=$(" & state_cmd & "); sleep 2; done; echo ; echo Your job seems now RUNNING! Let us check again...; echo ; echo ; squeue -j $JOBID; cat ~/vnc.log; echo ; echo Note above the Target Node for your VNC Session. If you requested more than ONE node, you need to connect to the FIRST node in the above node list.; echo ; echo You can close this window and continue...; " & chr(34)

0 comments on commit 5f6af87

Please sign in to comment.