Added get_job_param_mount() and get_task_param_mount()
[arvados.git] / doc / user / tutorials / running-external-program.html.textile.liquid
index 5a4320c3a71f269a47fa6236d6eb6dd24e1a2cc7..875e3cf80301a7d87b2784a996faeac8753f33d5 100644 (file)
@@ -17,31 +17,35 @@ In this tutorial, you will use the external program @md5sum@ to compute hashes i
 Start by entering the @crunch_scripts@ directory of your git repository:
 
 <notextile>
-<pre><code>$ <span class="userinput">cd you/crunch_scripts</span>
+<pre><code>~$ <span class="userinput">cd <b>you</b>/crunch_scripts</span>
 </code></pre>
 </notextile>
-Next, using your favorite text editor, create a new file called @run-md5sum.py@ in the @crunch_scripts@ directory.  Add the following code to use the @md5sum@ program to compute the hash of each file in a collection:
 
-<pre><code class="userinput">{% include 'run-md5sum_py' %}</code></pre>
+Next, using @nano@ or your favorite Unix text editor, create a new file called @run-md5sum.py@ in the @crunch_scripts@ directory.  
+
+notextile. <pre>~/<b>you</b>/crunch_scripts$ <code class="userinput">nano run-md5sum.py</code></pre>
+
+Add the following code to use the @md5sum@ program to compute the hash of each file in a collection:
+
+<pre><code class="userinput">{% include 'run_md5sum_py' %}</code></pre>
 
 Make the file executable:
 
-notextile. <pre><code>$ <span class="userinput">chmod +x run-md5sum.py</span></code></pre>
+notextile. <pre><code>~/<b>you</b>/crunch_scripts$ <span class="userinput">chmod +x run-md5sum.py</span></code></pre>
 
 Next, add the file to @git@ staging, commit and push:
 
 <notextile>
-<pre><code>$ <span class="userinput">git add run-md5sum.py</span>
-$ <span class="userinput">git commit -m"run external md5sum program"</span>
-$ <span class="userinput">git push origin master</span>
+<pre><code>~/<b>you</b>/crunch_scripts$ <span class="userinput">git add run-md5sum.py</span>
+~/<b>you</b>/crunch_scripts$ <span class="userinput">git commit -m"run external md5sum program"</span>
+~/<b>you</b>/crunch_scripts$ <span class="userinput">git push origin master</span>
 </code></pre>
 </notextile>
 
 You should now be able to run your new script using Crunch, with "script" referring to our new "run-md5sum.py" script.
 
 <notextile>
-<pre><code>$ <span class="userinput">cat &gt;the_job &lt;&lt;EOF
+<pre><code>~/<b>you</b>/crunch_scripts$ <span class="userinput">cat &gt;~/the_job &lt;&lt;EOF
 {
  "script": "run-md5sum.py",
  "script_version": "you:master",
@@ -51,13 +55,13 @@ You should now be able to run your new script using Crunch, with "script" referr
  }
 }
 EOF</span>
-$ <span class="userinput">arv -h job create --job "$(cat the_job)"</span>
+~/<b>you</b>/crunch_scripts$ <span class="userinput">arv -h job create --job "$(cat the_job)"</span>
 {
  ...
  "uuid":"qr1hi-xxxxx-xxxxxxxxxxxxxxx"
  ...
 }
-$ <span class="userinput">arv -h job get --uuid qr1hi-xxxxx-xxxxxxxxxxxxxxx</span>
+~/<b>you</b>/crunch_scripts$ <span class="userinput">arv -h job get --uuid qr1hi-xxxxx-xxxxxxxxxxxxxxx</span>
 {
  ...
  "output":"4d164b1658c261b9afc6b479130016a3+54",