<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.bzz.ch/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.bzz.ch/feed.php">
        <title>BZZ - Modulwiki - modul:m122:learningunits:lu08:loesungen</title>
        <description></description>
        <link>https://wiki.bzz.ch/</link>
        <image rdf:resource="https://wiki.bzz.ch/_media/wiki/logo.png" />
       <dc:date>2026-04-07T16:48:10+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.bzz.ch/modul/m122/learningunits/lu08/loesungen/dateien?rev=1734337915&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/modul/m122/learningunits/lu08/loesungen/subprocess?rev=1734336018&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.bzz.ch/_media/wiki/logo.png">
        <title>BZZ - Modulwiki</title>
        <link>https://wiki.bzz.ch/</link>
        <url>https://wiki.bzz.ch/_media/wiki/logo.png</url>
    </image>
    <item rdf:about="https://wiki.bzz.ch/modul/m122/learningunits/lu08/loesungen/dateien?rev=1734337915&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-12-16T08:31:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU08.L01: Arbeiten mit Dateien und Verzeichnissen</title>
        <link>https://wiki.bzz.ch/modul/m122/learningunits/lu08/loesungen/dateien?rev=1734337915&amp;do=diff</link>
        <description>LU08.L01: Arbeiten mit Dateien und Verzeichnissen


import subprocess
import sys


def create_directory(directory_name):
    &quot;&quot;&quot;
    Creates a directory with the specified name.
    :param directory_name:
    :return:
    &quot;&quot;&quot;
    try:
        result = subprocess.run(
            &#039;mkdir ./python_bash_test&amp;&amp;cd python_bash_test&#039;,
            shell=True,  # Use a shell to interpret the command
            check=True,  # Raise an error if the command fails
            text=True,  # Capture output as …</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/modul/m122/learningunits/lu08/loesungen/subprocess?rev=1734336018&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-12-16T08:00:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU08.L02: Funktion für Bash-Befehle</title>
        <link>https://wiki.bzz.ch/modul/m122/learningunits/lu08/loesungen/subprocess?rev=1734336018&amp;do=diff</link>
        <description>LU08.L02: Funktion für Bash-Befehle


def execute_bash(command):
    &quot;&quot;&quot;
    Execute a Bash command and return the result.
    Parameters
    ----------
    command : str
        The Bash command to execute.
    Returns
    -------
    subprocess.CompletedProcess
        The result of the command execution.
    &quot;&quot;&quot;
    try:
        result = subprocess.run(
            command,
            shell=True,  # Use a shell to interpret the command
            check=True,  # Raise an error if the command…</description>
    </item>
</rdf:RDF>
