Jan K. Labanowski: Computational Portals for Chemistry  

status.xml -- the XMLlet!!! (continued)

Under example1 directory you find the following files:
-rw-r--r--   1 tomcat4  tomcat4      818 Nov 14 10:25 description
-rw-r--r--   1 tomcat4  tomcat4      254 Nov 11 10:34 example1.in
-rw-r--r--   1 tomcat4  tomcat4      992 Nov 13 11:06 example1.script
-rw-r--r--   1 tomcat4  tomcat4     3203 Nov 11 09:41 example1.xyz
-rw-r--r--   1 tomcat4  tomcat4     2606 Nov 13 04:10 input-files.xml
-rw-r--r--   1 tomcat4  tomcat4     3567 Nov 13 11:23 output-files.xml
-rw-r--r--   1 tomcat4  tomcat4     2513 Nov 17 08:18 status.xml
status.xml -- the status file after 2nd event, files copied from Web server to back end (the job need a script and input files to run).

<status>
  <applicationName>Wilkins Code</applicationName>
  <fileVersion>1.0</fileVersion>
  <event name="CreateRemoteRunDirectory">
     <eventPassword>M9kLeQH0iqB1BaW</eventPassword>
     <eventTimestamp>Wed Feb 20 02:41:07 EST 2002</eventTimestamp>
     <eventType>COMMAND_ON_WEB_SERVER</eventType>
     <eventCommand>ssh -l portal oscbw.ccl.net mkdir -p \
 /f/portal/PortalRuns/jkl@asdn.net/example1</eventCommand>
     <eventMessage>Directory on Remote Host has been create:
 COMMAND: /bin/sh /usr/local/tomcat_4.0/jakarta-tomcat-4.0/webapps/sciPortal/\
WEB-INF/Users/jkl@asdn.net/example1/1.sh
STATUS: 0
STDOUT:

STDERR:
</eventMessage>
  </event>
  <event name="CopyFilesToBackend">
     <eventPassword>tucy3AJig372oqG</eventPassword>
     <eventTimestamp>Wed Feb 20 02:41:08 EST 2002</eventTimestamp>
     <eventType>COMMAND_ON_WEB_SERVER</eventType>
     <eventCommand>scp -pAv /usr/local/tomcat_4.0/jakarta-tomcat-4.0/\
webapps/sciPortal/WEB-INF/Users/jkl@asdn.net/example1/example1.* \
portal@oscbw.ccl.net:/f/portal/PortalRuns/jkl@asdn.net/example1</eventCommand>
     <eventMessage>Files have been copied:
 COMMAND: /bin/sh /usr/local/tomcat_4.0/jakarta-tomcat-4.0/webapps/sciPortal/\
WEB-INF/Users/jkl@asdn.net/example1/2.sh
STATUS: 0
STDOUT:

STDERR:
Executing: host oscbw.ccl.net, user portal, command scp -v -p -d -t \
/f/portal/PortalRuns/jkl@asdn.net/example1
SSH Version 1.2.27 [sparc-sun-solaris2.7], protocol version 1.5.
Compiled with RSAREF.
heechee: Reading configuration data /etc/local/ssh_config
heechee: ssh_connect: getuid 2612 geteuid 0 anon 0
heechee: Connecting to oscbw.ccl.net [192.148.248.61] port 22.
heechee: Allocated local port 1022.
heechee: Connection established.
heechee: Remote protocol version 1.99, remote software version OpenSSH_2.3.0p1
heechee: Waiting for server public key.
heechee: Received server public key (768 bits) and host key (1024 bits).
heechee: Host 'oscbw.ccl.net' is known and matches the host key.
heechee: Initializing random; seed file /usr/local/tomcat_4.0/jakarta-tomcat-4.0/.ssh/random_seed
heechee: Encryption type: blowfish
heechee: Sent encrypted session key.
heechee: Installing crc compensation attack detector.
heechee: Received encrypted confirmation.
heechee: No agent.
heechee: Trying RSA authentication with key 'tomcat4@heechee'
heechee: Received RSA challenge from server.
heechee: Sending response to host key RSA challenge.
heechee: Remote: RSA authentication accepted.
heechee: RSA authentication accepted by server.
heechee: Sending command: scp -v -p -d -t /f/portal/PortalRuns/jkl@asdn.net/example1
heechee: Entering interactive session.
Sending file modes: C0644 254 example1.in
Sending file modes: C0644 856 example1.script
Sending file modes: C0644 3203 example1.xyz
heechee: Transferred: stdin 4469, stdout 10, stderr 0 bytes in 0.2 seconds
heechee: Bytes per second: stdin 19979.8, stdout 44.7, stderr 0.0
heechee: Exit status 0
</eventMessage>
  </event>
  <event name="SubmitJob">
     <eventPassword>tvdYxRPzOvyrPr0</eventPassword>
     <eventTimestamp>none</eventTimestamp>
     <eventType>COMMAND_ON_WEB_SERVER</eventType>
     <eventCommand>ssh -l  portal oscbw.ccl.net \
 '( cd /f/portal/PortalRuns/jkl@asdn.net/example1; \
/usr/local/pbs/bin/qsub example1.script )'</eventCommand>
     <eventMessage>none</eventMessage>
  </event>
  <event name="JobStarted">
     <eventPassword>uqiQoLVr0O7CFzK</eventPassword>
     <eventTimestamp>none</eventTimestamp>
     <eventType>COMMAND_ON_WEB_SERVER</eventType>
     <eventCommand>ssh -l portal oscbw.ccl.net \
'/usr/local/pbs/bin/qstat -a | grep example1'</eventCommand>
     <eventMessage>none</eventMessage>
  </event>
  <event name="CopyOutputFiles">
     <eventPassword>t5GBECPzArrSYVI</eventPassword>
     <eventTimestamp>none</eventTimestamp>
     <eventType>COMMAND_ON_WEB_SERVER</eventType>
     <eventCommand>/usr/bin/batch <<EOF
sleep 5
/usr/local/bin/scp -pAvr 'portal@oscbw.ccl.net:/f/portal/PortalRuns/\
jkl@asdn.net/example1/*' /usr/local/tomcat_4.0/jakarta-tomcat-4.0/webapp\
s/sciPortal/WEB-INF/Users/jkl@asdn.net/example1
EOF
</eventCommand>
     <eventMessage>none</eventMessage>
  </event>
  <event name="JobFinished">
     <eventPassword>NwFnozEUq0fu1I5</eventPassword>
     <eventTimestamp>none</eventTimestamp>
     <eventType>NO_ACTION</eventType>
     <eventCommand>none</eventCommand>
     <eventMessage>none</eventMessage>
  </event>
</status>