<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="color: rgb(0, 0, 191);"><span>Hi Mike, <br></span></div><div><br><span></span></div><div>"If the head node can indeed access Mosa"</div><div style="color: rgb(0, 0, 191);">We made some modifications in Mosa for our experiments and now only metadata access can be done from head-node in BG/P.</div><div style="color: rgb(0, 0, 191);"><br></div><div style="color: rgb(0, 0, 191);">Thank you for your suggestion and it make sense. I will try that and get back to you if I have questions.</div><div style="color: rgb(0, 0, 191);"><br></div><div style="color: rgb(0, 0, 191);">Thank you</div><div style="color: rgb(0, 0, 191);">Emalayan<br></div><div><br></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif;
 font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Michael Wilde <wilde@mcs.anl.gov><br> <b><span style="font-weight: bold;">To:</span></b> Emalayan Vairavanathan <svemalayan@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> MosaStore <mosastore@googlegroups.com>; swift-devel@ci.uchicago.edu <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, 23 April 2012 10:48 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Swift-devel] Unix command from Swift run-time<br> </font> </div> <br>Emalayan,<br><br>If the head node can indeed access Mosa, and you want the getIP app to execute only on the head node, then define the site "localhost" in the same way you would if running on a single local workstation, and only list getIP in your tc file as being installed on site "localhost".<br><br>If I understand your need
 correctly, that should make Swift only run getIP on the head node.<br><br>- Mike<br><br><br>----- Original Message -----<br>> From: "Emalayan Vairavanathan" <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>><br>> To: <a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a><br>> Cc: "MosaStore" <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>><br>> Sent: Monday, April 23, 2012 12:43:02 PM<br>> Subject: [Swift-devel] Unix command from Swift run-time<br>> Hi All,<br>> <br>> <br>> I have a question.<br>> <br>> <br>> I need to do the following to integrate MosaStore with extended<br>> attributes + Swift+ Application.<br>> <br>> <br>> 1) Execute a Unix command to find the location of a file from my<br>>
 swift-program.<br>> <br>> 2) Then need to use the output of this command as an input to the<br>> swift-app (remote) procedure so that it will be scheduled where the<br>> file is located (see below).<br>> <br>> <br>> <br>> app read_file (file input, string machine){<br>> readperf @input "machine=" + machine;<br>> }<br>> <br>> One way is to get the location of a file in another swift-app<br>> procedure as below. But this will be executed locally/remotely through<br>> a worker.<br>> <br>> app (file outputFile) getIP (string filename){<br>> <br>> }<br>> <br>> Given that Swift run-time has access to Mosa on the head-node is there<br>> any other way to do this task with low cost (may be directly executing<br>> this command without going through a worker? ). Can I use external<br>> mappers / variable declared as external type / some other way ?<br>> <br>> <br>> <br>> If you have
 an example program in the repository please point me to<br>> that.<br>> <br>> <br>> <br>> Thank you Emalayan.<br>> _______________________________________________<br>> Swift-devel mailing list<br>> <a ymailto="mailto:Swift-devel@ci.uchicago.edu" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br><br>-- <br>Michael Wilde<br>Computation Institute, University of Chicago<br>Mathematics and Computer Science Division<br>Argonne National Laboratory<br><br><br><br> </div> </div>  </div></body></html>