Ok.  thanks. I'll take a look at that.<br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 9:18 PM, Michael Wilde <span dir="ltr"><<a href="mailto:wilde@mcs.anl.gov">wilde@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:Times New Roman;font-size:12pt;color:#000000">Since you have a run script, you can have it generate the sites file from a shell "here document" in which you can place shell variables, which will get substituted when the here document is referenced.<div>
<br></div><div>David's gew gensites command does this, so you can likely use gensites itself from your run script, with your own sites file templates.</div><div><br></div><div>if you need to, you can pass the same variables into your Swift script via the -param=value parameters at the end of the command line.</div>
<div><br></div><div>- Mike<br><br><hr><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><div><div></div><div class="h5"><div>I have this line in my sites.xml file.</div><profile key="slots" namespace="globus">10</profile><br clear="all">
<br><div>I want to do something like this<br><div><profile key="slots" namespace="globus">${MONTAGE_WORKERS}</profile></div>
<div><br></div><div>Is this possible or another way for this?  The reason is depending on the data set i want a different number of workers.  Some sets are large and I need to request 100 workers and others are small that 5 will suffice.  So I would like to be able to set an environment variable in my run script detailing how many workers to set here.  I am using automatic coasters(not passive or persistent).  I would like to avoid manual coasters as automatic coasters is working fine for my jobs.  I would like to do this so I can only keep one sites file and not a sites file for small, medium, and large data sets.</div>

<div>-- <br>Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction.<br>- Albert Einstein<br><br><br>
</div></div>
<br></div></div>_______________________________________________<br>Swift-user mailing list<br><a href="mailto:Swift-user@ci.uchicago.edu" target="_blank">Swift-user@ci.uchicago.edu</a><br><a href="http://mail.ci.uchicago.edu/mailman/listinfo/swift-user" target="_blank">http://mail.ci.uchicago.edu/mailman/listinfo/swift-user</a></blockquote>
<br><font color="#888888"><span><br><br>-- <br><span name="x"></span>Michael Wilde<br>Computation Institute, University of Chicago<br>Mathematics and Computer Science Division<br>Argonne National Laboratory<br><span name="x"></span><br>
</span></font></div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction.<br>
- Albert Einstein<br><br><br>