<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>bash on Christian Knedel</title>
    <link>https://www.christian-knedel.de/fr/tags/bash/</link>
    <description>Recent content in bash on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>fr-fr</language>
    <lastBuildDate>Sun, 04 Apr 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/fr/tags/bash/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Brève histoire : Contrôle du bureau avec xDoTools et xClip</title>
      <link>https://www.christian-knedel.de/fr/post/2021/april/20210404-xdotools-xclip/</link>
      <pubDate>Sun, 04 Apr 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/fr/post/2021/april/20210404-xdotools-xclip/</guid>
      <description>Dans ce tutoriel, je montre comment on peut contrôler un bureau Linux via Bash. Les paquets suivants sont nécessaires pour le robot Bash : x  &amp;ndash;  +   Terminal   $ apt-get install xdotool xclip   Ensuite, on peut utiliser toutes les commandes xdotool, par exemple
#!/bin/bash #mouse bewegen xdotool mousemove 100 200 #Mouse - Koordinaten erfassen xdotool getmouselocation #Mouse-klick xdotool click 1 Mouse-Klick auf Koordinaten xdotool mousemove 100 200 click 1 #usw.</description>
    </item>
    
    <item>
      <title>Générer un aperçu des pages PDF</title>
      <link>https://www.christian-knedel.de/fr/post/2020/february/20200214-imagemagick-pdf-overview/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/fr/post/2020/february/20200214-imagemagick-pdf-overview/</guid>
      <description>Si vous souhaitez créer une image d&amp;rsquo;aperçu de la page à partir d&amp;rsquo;un fichier PDF, vous êtes au bon endroit !    Étape 1 : Créer un dossier de travail Cette commande permet de créer un dossier de travail temporaire : x  &amp;ndash;  +   Terminal   $ mkdir /tmp/bilder  
Étape 2 : Séparer la page La commande suivante permet de créer une image de chaque page PDF : x  &amp;ndash;  +   Terminal   $ convert 716023b632a9cbe6cad3ab368c202288.</description>
    </item>
    
    <item>
      <title>Raspberry-PI : Pas de chaleur pour le CPU PI</title>
      <link>https://www.christian-knedel.de/fr/post/2020/february/20200214-rpi-cpu-temp/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/fr/post/2020/february/20200214-rpi-cpu-temp/</guid>
      <description>Si vous souhaitez éteindre un Raspberry à partir d&amp;rsquo;une certaine température, vous êtes au bon endroit. J&amp;rsquo;ai un script qui vérifie la température du CPU par crontab :
#!/bin/sh # This script reads the Broadcom SoC temperature value and shuts down if it # exceeds a particular value. # 80ºC is the maximum allowed for a Raspberry Pi. # Get the reading from the sensor and strip the non-number parts SENSOR=&amp;quot;`/opt/vc/bin/vcgencmd measure_temp | cut -d &amp;quot;=&amp;quot; -f2 | cut -d &amp;quot;&#39;&amp;quot; -f1`&amp;quot; # -gt only deals with whole numbers, so round it.</description>
    </item>
    
    <item>
      <title>Brève histoire : Scripts Bash avec Elgato Stream Deck</title>
      <link>https://www.christian-knedel.de/fr/post/2020/february/20200221-elgato-stream-deck/</link>
      <pubDate>Fri, 07 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/fr/post/2020/february/20200221-elgato-stream-deck/</guid>
      <description>Si l&amp;rsquo;on veut intégrer un script bash dans la platine stream d&amp;rsquo;Elgato, il faut d&amp;rsquo;abord un script bash.
Étape 1 : Créer un script bash : Je crée un fichier nommé &amp;ldquo;say-hallo.sh&amp;rdquo; avec le contenu suivant :
#!/bin/bash say &amp;quot;hallo&amp;quot; Étape 2 : Définir les droits La commande suivante permet de rendre le fichier exécutable : x  &amp;ndash;  +   Terminal   $ chmod 755 say-hallo.sh</description>
    </item>
    
  </channel>
</rss>
