<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi All,</div><div><br></div><div>I have a question.</div><div><br></div><div>I need to do the following to integrate MosaStore with extended attributes + Swift+ Application.<br><br></div><div> 1) Execute a Unix command to find the location of a file from my swift-program. <br></div><div>2) Then need to use the output of this command as an input to the swift-app (remote) procedure so that it will be scheduled where the file is located (see below).<br><br></div><div><div style="font-style: italic;">app read_file (file input, string machine){<br>
    readperf @input "machine=" + machine;<br>}</div><div style="font-style: italic;"><br></div>One way is to get the location of a file in another swift-app procedure as below. But <span>this will be executed locally/remotely through a worker.</span><br><br><span style="font-style: italic;">app (file outputFile) getIP (string filename){</span><br style="font-style: italic;"><span style="font-style: italic;">
    </span><br style="font-style: italic;"><span style="font-style: italic;">}</span><br style="font-style: italic;"><br>Given that Swift run-time has access to Mosa on the head-node is there any other way to do this task with low cost  (may be directly executing this command without going through a worker? ). Can I use external mappers / 
variable declared as external type / some other way ? <br></div><div><br></div><div>If you have an example program in the repository please point me to that.<br></div><div><br></div><div>Thank you</div>Emalayan.</div></body></html>