<%@ page info="Collect info necessary to submit job script." %> <%@ page import="WebFlow.*" %> <%@ page import="WebFlow.ContextManager.*" %> <%@ page import="java.util.Date" %> <%@ page errorPage="/Generic/Error.jsp" %> <% String userName=storeInfo.getTableVal("userName"); String slaveHostName = request.getParameter("machineName"); storeInfo.setTablePair("hostName",slaveHostName); String slaveMachinename = storeInfo.getTableVal("slaveMachinename"); ContextManager cm = null; if(!slaveHostName.equals(slaveMachinename)) { cm=modserver.getContextManager(); } else { cm=modserver.getContextManagerForSlave(); } setprops.setXML(parseXML); //setprops.setNE(nameEncode); setprops.setCM(cm); //setprops.setSI(storeInfo); //submitJob sj=ServerServlet.getSubmitJob(userName); String problemName=request.getParameter("problemName"); //String problemName=storeInfo.getTableVal("problemName"); problemName=nameEncode.encode(problemName); System.out.println("ProblemName: "+problemName); Date currentDate = new Date(); long time = currentDate.getTime(); String timestring = (new Long(time).toString()); String sessionName = "session"+timestring; cm.addNewProblem(problemName); storeInfo.setTablePair("problemName",problemName); //String webpath = application.getRealPath("/WEB-INF/"); //String pdir = webpath+"Descriptors/users/JSPClient/gateway/"+problemName; //String sdir = webpath+"Descriptors/users/JSPClient/gateway/"+problemName+"/"+sessionName; //sj.execLocalCommand("/usr/local/bin/chmod 777 "+pdir); String problemNameContext = problemName+".PC"; cm.addNewSession(problemNameContext,sessionName); storeInfo.setTablePair("sessionName",sessionName); cm.selectSession(problemName,sessionName); System.out.println("sessionName: "+sessionName); setprops.setRequests(request); //sj.execLocalCommand("/usr/local/bin/chmod 777 "+sdir); //String code=request.getParameter("codeName"); //cm.setCurrentSessionProperty("Code",code); //String machine=request.getParameter("machineName"); //cm.setCurrentSessionProperty("MachineName",machine); %>

Job Script Input

Please provide the following information needed to generate the queue script.

Shell: /bin/csh /bin/sh

Queue: small medium large default

WallTime (hh:mm:ss):

Number of Nodes:

The code you have selected takes <%= cm.getCurrentSessionProperty("NumberOfInFiles")%> input parameter(s). See the code documentation for details. Please specify the location of the input file on the remote host, <%= cm.getCurrentSessionProperty("machineName") %>. You can use the "Upload" button in the "Tools" area to transfer your input file from your desktop to the remote host.
  <% int limit1=Integer.parseInt(cm.getCurrentSessionProperty("NumberOfInFiles")); for(int i=0;i Input File:
  <% } %>

This code requires <%= cm.getCurrentSessionProperty("NumberOfInParams")%> input pa rameters on the command line. Please provide them in the fields below. See the code documentation for details.
  <% int limit2=Integer.parseInt(cm.getCurrentSessionProperty("NumberOfInParams")); for(int i=0;i Input Parameter:
  <% } %>

The application requires <%= cm.getCurrentSessionProperty("NumberOfOutParams") %> out put parameter(s) on the command line.
  <% int uplimit1=Integer.parseInt(cm.getCurrentSessionProperty("NumberOfOutParams")); for(int j=0;j Output Parameter:
<% } %>

Finally, the application generates <%= cm.getCurrentSessionProperty("NumberOfOutFiles") %> output file(s). Please specify the full path name of the directory on the HPC server where you would like this file to be placed. You can later download this file to your desktop with the "File Browser" from the "Tools" area.
  <% int uplimit2=Integer.parseInt(cm.getCurrentSessionProperty("NumberOfOutFiles")); for(int j=0;j Output File:
<% } %>