<?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/en/tags/bash/</link>
    <description>Recent content in bash on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 04 Apr 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/en/tags/bash/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Short story: Desktop control with xDoTools and xClip</title>
      <link>https://www.christian-knedel.de/en/post/2021/april/20210404-xdotools-xclip/</link>
      <pubDate>Sun, 04 Apr 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/en/post/2021/april/20210404-xdotools-xclip/</guid>
      <description>In this tutorial I show how to control a Linux - desktop via Bash. The following packages are needed for the bash robot: x  &amp;ndash;  +   Terminal   $ apt-get install xdotool xclip   After that you can use all xdotool commands, for example:
#!/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>Generate PDF page overview</title>
      <link>https://www.christian-knedel.de/en/post/2020/february/20200214-imagemagick-pdf-overview/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/en/post/2020/february/20200214-imagemagick-pdf-overview/</guid>
      <description>If you want to create a page overview image from a PDF file, then you&amp;rsquo;ve come to the right place!    Step 1: Create working folder Use this command to create a temporary working folder: x  &amp;ndash;  +   Terminal   $ mkdir /tmp/bilder  
Step 2: Separate page The following command creates an image of each PDF page: x  &amp;ndash;  +   Terminal   $ convert 716023b632a9cbe6cad3ab368c202288.</description>
    </item>
    
    <item>
      <title>Raspberry-PI: Heat free for the PI CPU</title>
      <link>https://www.christian-knedel.de/en/post/2020/february/20200214-rpi-cpu-temp/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/en/post/2020/february/20200214-rpi-cpu-temp/</guid>
      <description>If you want to shut down a Raspberry above a certain temperature, then you are in the right place. I have a script that checks the CPU temperature via 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>Short story: Bash scripts with Elgato Stream Deck</title>
      <link>https://www.christian-knedel.de/en/post/2020/february/20200221-elgato-stream-deck/</link>
      <pubDate>Fri, 07 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/en/post/2020/february/20200221-elgato-stream-deck/</guid>
      <description>If you want to include a bash - script in the Elgato stream deck, then you need a bash script first.
Step 1: Create Bash script: I create a file named &amp;ldquo;say-hallo.sh&amp;rdquo; with the following content:
#!/bin/bash say &amp;quot;hallo&amp;quot; Step 2: Set rights The following command makes the file executable: x  &amp;ndash;  +   Terminal   $ chmod 755 say-hallo.sh  
Step 3: Include bash script in the deck 3.</description>
    </item>
    
  </channel>
</rss>
