I have attached the script files.  Here is a brief description of what 
they
do for me.

I have a compiled code sitting at /home/bdsimmns/bin/evolver

The file sepbs is called and passed the name of the input data file;  
sepbs
V3e-5_M5e-5

This value is passed on to the file semake.pbs.
The file semake.pbs is used to create a file surface.pbs
surface pbs has executable permissions added to it.
qsub command is processed with the script file surface.pbs
surface.pbs is removed
and the script exits.

If there is something wrong with this progression, please let me know.  
If
there is an easier way to do this, please let me know about that too.

Is there a great advantage to running PBSPro?

Thanks,
Ben Simmons


----- Original Message -----
From: Jeremy Enos <[EMAIL PROTECTED]>
Date: Wednesday, November 13, 2002 4:23 pm
Subject: Re: [Oscar-users] PBS Job Submission

> At 04:32 PM 11/13/2002 -0500, Wendy Lin wrote:
> >>>Is there also a way to assign a particular job to a particular 
> node?>>
> >>Yes- resources.  Current PBS in OSCAR isn't configured like 
> that, but 
> >>will be in the future.  In the meantime, run:
> >>
> >>for machine in `cat /var/spool/pbs/server_priv/nodes |awk '{ 
> print $1 }'` 
> >>; do qmgr -c "set node $machine properties+=$machine" ; done
> >>
> >>That will add a machine name resource to each of your machines, 
> and then 
> >>you can modify your qsub line to do something like:
> >>
> >>qsub -l nodes=1:ppn=2:resource=node5 -N my_job_name my_job_script.sh
> >
> >Unless OSCAR provides its own qsub, the syntax for requesting a 
> node with 
> >a certain property is like this:
> >
> >         qsub -l nodes=1:ppn=2:node5 ......
> >
> >(It's "node5", not "resource=node5".)
> >
> >However since the node name is also a property, you can use it 
> directly 
> >like this:
> >
> >         qsub -l nodes=node5:ppn=2 ......
> >
> >There is no need to make it into a property at all.
> 
> Wendy is correct here- my mistake.  I think the property may be 
> necessary 
> for grouping specific nodes, unless Wendy has syntax that will 
> allow for 
> that as well.
> thx Wendy!
> 
>         Jeremy
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Are you worried about 
> your web server security? Click here for a FREE Thawte 
> Apache SSL Guide and answer your Apache SSL security 
> needs: http://www.gothawte.com/rd523.html
> _______________________________________________
> Oscar-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/oscar-users
> 
#####Script to execute Surface Evolver code

          argva=$1
        rerror=""
if [ "$argva" = "$rerror" ]; then
   echo 'Wrong number of arguments, correct usage is: sepbs case_name' 
   exit
fi

echo 'PBS: Now Executing SurfaceEvolver,     case=' $argva
   semake.pbs $argva > surface.pbs
   chmod +x surface.pbs
   qsub -l nodes=1:ppn=1:all surface.pbs
#!   rm surface.pbs
echo 'Script completed-Your job is running!' 
  exit
#!/bin/sh
   argva=$1
   
echo '#PBS -N' se_$argva 
echo '#PBS -o' $argva.log
echo '#PBS -e' $argva.pbs 
echo '#PBS -q' workq
     pathname=$PWD
     argv=$pathname/$argva
echo  pbsdsh ~/bin/evolver $argv 
echo '#All done'
begin:vcard
n:Simmons;Benjamin
fn:Benjamin Simmons
tel;work:678-4285
org:The University of Memphis;Mechanical Engineering
version:2.1
email;internet:[EMAIL PROTECTED]
title:Research Associate
end:vcard

Reply via email to