<%@ page import="WebFlow.*" %> <%@ page import="WebFlow.ContextManager.*" %> <% String machine=request.getParameter("machineName"); String userName=storeInfo.getTableVal("userName"); ContextManager cm=ServerServlet.getContextManager(userName); cm.setCurrentProblemProperty("MachineName",machine); String execpath= parseXML.getInstalledVal(cm.getCurrentProblemProperty("Code"), cm.getCurrentProblemProperty("MachineName"),"execpath"); String qsubpath= parseXML.getInstalledVal(cm.getCurrentProblemProperty("Code"), cm.getCurrentProblemProperty("MachineName"),"qsubpath"); // I have hardset the following parameters, but they should be // gathered from the user. cm.setCurrentProblemProperty("NNodes","2"); cm.setCurrentProblemProperty("walltime","10:00:00"); cm.setCurrentProblemProperty("queue","default"); cm.setCurrentProblemProperty("shell","/bin/csh"); cm.setCurrentProblemProperty("execpath",execpath); cm.setCurrentProblemProperty("qsubpath",qsubpath); cm.setCurrentProblemProperty("inputpath", "/app/gateway/Ising/input1.dat"); cm.setCurrentProblemProperty("outputpath", "/app/gateway/Ising/output1.dat"); //Instantiate the createJobScript bean generic.createJobScript cjs=new generic.createJobScript(cm); cjs.createPBS(); %>

Script Page

You want to use the host <%= machine %>.

At this point you should be prompted to upload your input file, or perhaps choose one from a repository. For testing, however, I have hardcoded this.

The following are preassigned values used to create the queue script. I store these in the ContextData.
Job Name: <%= cm.getCurrentProblemProperty("Name") %>
Application: <%= cm.getCurrentProblemProperty("Code") %>
Remote host: <%= cm.getCurrentProblemProperty("MachineName") %>
Number of Nodes: <%= cm.getCurrentProblemProperty("NNodes") %>
Walltime: <%= cm.getCurrentProblemProperty("walltime") %>
Queue: <%= cm.getCurrentProblemProperty("queue") %>
Shell: <%= cm.getCurrentProblemProperty("shell") %>
Full path to executable: <%= cm.getCurrentProblemProperty("execpath") %>

Your job script has been created. You can submit your job by pressing the button below.