[Swift-commit] r7520 - SwiftApps/swift-galaxy/swift
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Mon Jan 27 12:31:50 CST 2014
Author: ketan
Date: 2014-01-27 12:31:50 -0600 (Mon, 27 Jan 2014)
New Revision: 7520
Modified:
SwiftApps/swift-galaxy/swift/swiftforeachlist.xml
SwiftApps/swift-galaxy/swift/swiftforeachrange.xml
Log:
doc for foreach
Modified: SwiftApps/swift-galaxy/swift/swiftforeachlist.xml
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachlist.xml 2014-01-27 18:03:43 UTC (rev 7519)
+++ SwiftApps/swift-galaxy/swift/swiftforeachlist.xml 2014-01-27 18:31:50 UTC (rev 7520)
@@ -60,6 +60,21 @@
-----
**Example**
-ToDo
+
+To run an executable in parallel over a list of parameters read from an input file, chose an executable from the Executable dropdown and a list containing items as parameters from List File.
+
+A sample list file is:
+
+/home/ketan/afile.txt
+/home/ketan/bfile.txt
+/home/ketan/cfile.txt
+
+A sample executable upload.sh is:
+
+scp $1 aserver.adomain.edu:~/
+
+The tool will run thrice invoking the above scp command in parallel for three items listed in the list file.
+
+
</help>
</tool>
Modified: SwiftApps/swift-galaxy/swift/swiftforeachrange.xml
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachrange.xml 2014-01-27 18:03:43 UTC (rev 7519)
+++ SwiftApps/swift-galaxy/swift/swiftforeachrange.xml 2014-01-27 18:31:50 UTC (rev 7520)
@@ -60,12 +60,21 @@
**What it does**
-This is a generic Swift tool.
+This is a generic Swift tool that runs an executable over a range of numbers with arbitrary stepsize.
-----
**Example**
-ToDo
+Pick up an executable from the Executable list. Select the start, end and the step size values.
+
+If an executable is echo.sh:
+
+echo $1
+
+Start, end and step is 0, 9 and 2, the executable will be invoked in parallel 5 times for n where n is 0 2 4 6 8:
+
+echo n
+
</help>
</tool>
More information about the Swift-commit
mailing list