Skip to content

Commit

Permalink
Merge pull request #30 from psteinb/remove_mini_shell_lesson
Browse files Browse the repository at this point in the history
Remove mini shell lesson
  • Loading branch information
Peter Steinbach authored Mar 27, 2019
2 parents 1b31035 + d6911de commit 8503882
Show file tree
Hide file tree
Showing 104 changed files with 45 additions and 615 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
carpentry: "swc"

# Overall title for pages.
title: "HPC in a day"
title: "HPC novice"

# Contact email address.
email: [email protected]
Expand Down
12 changes: 12 additions & 0 deletions _episodes/01-01-taking-the-space-shuttle.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ $ ssh lola@{{ site.workshop_login_host }}
~~~
{: .bash}

> ## Logging in
>
> If you do this material on your own, be sure to replace `lola` with the username that is attributed to you on {{ site.workshop_login_host }}. When you hit enter, a prompt like this might appear:
>
> ~~~
> lola@{{ site.workshop_login_host }}'s password:
> ~~~
> {: .output}
>
> Now is your chance to type in your password. But watchout, the characters you type are not displayed on the screen.
{: .callout}
~~~
Last login: Tue Mar 14 14:13:14 2017 from lolas_laptop
-bash-4.1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@ The cluster in question here, is running a scheduling software called {{ site.wo
A first exercise would be to submit a job that does nothing else but print "Hello World!".

~~~
{% include /snippets/02/submit_hello_world_to_void.{{ site.workshop_scheduler }} %}
{% include /snippets/01/submit_hello_world_to_void.{{ site.workshop_scheduler }} %}
~~~
{: .bash}

~~~
{% include /snippets/02/output_hello_world_to_void.{{ site.workshop_scheduler }} %}
{% include /snippets/01/output_hello_world_to_void.{{ site.workshop_scheduler }} %}
~~~
{: .output}


That worked out pretty well. The problem is, it's not very helpful and doesn't help Lola or anyone to do her job. But Lola wonders if the job really was executed on another node. She thinks of a little experiment to explore the scheduler a bit.

~~~
{% include /snippets/02/submit_hostname_experiment.{{ site.workshop_scheduler }} %}
{% include /snippets/01/submit_hostname_experiment.{{ site.workshop_scheduler }} %}
~~~
{: .bash}

~~~
{% include /snippets/02/output_hostname_experiment.{{ site.workshop_scheduler }} %}
{% include /snippets/01/output_hostname_experiment.{{ site.workshop_scheduler }} %}
~~~
{: .output}

Expand All @@ -76,12 +76,12 @@ If she repeats this command, over and over again, the output changes. So these c
Individual commands are fine, but Lola knows from experience that very often her work requires her to do more complex tasks, i.e. to execute a couple of commands after one another. To simulate this, she writes a small script that can be run on the node that runs her job.

~~~
{% include /snippets/02/submit_hostname_date.{{ site.workshop_scheduler }} %}
{% include /snippets/01/submit_hostname_date.{{ site.workshop_scheduler }} %}
~~~
{: .bash}

~~~
{% include /snippets/02/output_hostname_date.{{ site.workshop_scheduler }} %}
{% include /snippets/01/output_hostname_date.{{ site.workshop_scheduler }} %}
~~~
{: .output}

Expand All @@ -100,7 +100,7 @@ OK, but Lola wonders where the output of the job goes. Is there a way to reliabl


~~~
{% include /snippets/02/submit_with_output_hostname_date.{{ site.workshop_scheduler }} %}
{% include /snippets/01/submit_with_output_hostname_date.{{ site.workshop_scheduler }} %}
~~~
{: .bash}

Expand All @@ -121,7 +121,7 @@ Tue Mar 7 11:14:11 CET 2017
The scheduler allows Lola to split the two and write them to individual files. For example like this:

~~~
{% include /snippets/02/submit_with_output_and_error_hostname_date.{{ site.workshop_scheduler }} %}
{% include /snippets/01/submit_with_output_and_error_hostname_date.{{ site.workshop_scheduler }} %}
~~~
{: .bash}

Expand Down
Loading

0 comments on commit 8503882

Please sign in to comment.