<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Is it just &#12415;? &#187; Scripts</title>
	<atom:link href="http://blog.himmelrath.net/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.himmelrath.net</link>
	<description>ungeordneter Unfug</description>
	<lastBuildDate>Sun, 25 Jul 2010 08:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Simple backups with windows 2</title>
		<link>http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-2/</link>
		<comments>http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-2/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 20:44:34 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Technik]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[Rar]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Zip]]></category>

		<guid isPermaLink="false">http://blog.himmelrath.net/?p=432</guid>
		<description><![CDATA[Update: I made additional changes to the script which are a real improvement for my daily use. The current version is "0.3d [2010-01-08]"

Last week I wrote about a simple way to zip all subfolders of a specific folder which I use for my simple archiving strategy at work. Today I <a href="http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-2/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p class="remark">Ich werde mal versuchen einige meiner Einträge auf Englisch zu verfassen &#8211; um in der Übung zu bleiben.</p>
<p><strong>Update:</strong> I made additional changes to the script which are a real improvement for my daily use. The current version is &#8220;0.3d [2010-01-08]&#8221;</p>
<p>Last week I wrote about a <a href="http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-1/">simple way to zip all subfolders of a specific folder</a> which I use for my simple archiving strategy at work. Today I would like to show you a simple script I wrote which backups files listed in a configuration file using rar and puts them into a single archive named after the current date and time. I wrote it to be used as a scheduled task that runs every few hours on some windows machine that is always on.<sup>1</sup></p>
<p>I will not show the complete code here, since it&#8217;s about 150 lines. You can download the whole <a href="/wp-content/uploads/2009/12/2010-01-08-FileBackup.zip">script package as .zip-archive</a>.</p>
<p>The archive contains four files:</p>
<table border="0">
<tbody>
<tr>
<th>INFO-README.TXT</th>
<td>Some Information about the script</td>
</tr>
<tr>
<th>KPSBackupList.ini</th>
<td>The file containing the list of files to backup. Can be changed in the KPSFileBackup.bat</td>
</tr>
<tr>
<th>startHidden.vbs</th>
<td>Just a simple Script file to start the batch file without showing a console-window</td>
</tr>
<tr>
<th>FileBackupConfig.bat</th>
<td>The batch config file. It contains the config-section where you can change the settings as explained below</td>
</tr>
<tr>
<th>KPSFileBackup.bat</th>
<td>The actual batch file, you may run.</td>
</tr>
</tbody>
</table>
<p>The following settings are available:</p>
<table border="0">
<tbody>
<tr>
<th>backupFilelist</th>
<td>The file containing the list of all files that should be backed up</td>
</tr>
<tr>
<th>destinationDir</th>
<td>Destination directory where all backup files are stored</td>
</tr>
<tr>
<th>prefix</th>
<td>The prefix is put before the date in the name of the backup file</td>
</tr>
<tr>
<th>retryTime</th>
<td>Number of seconds to wait before retrying if one of the files was open and could therefore not be put into the archive. This is an approximate value since I hadd to use a workaround to put the script to sleep.</td>
</tr>
<tr>
<th>maxRetries</th>
<td>Number of times the script will retry if one of the files was open</td>
</tr>
<tr>
<th>backupsToKeep</th>
<td>The number of old backups to keep</td>
</tr>
<tr>
<th>rarPath</th>
<td>Path to the RAR<sup>2</sup> executable file</td>
</tr>
</tbody>
</table>
<p><sup>1</sup> The reason for using a batch script and a Windows machine is simple: They do not use linux here. Though I might get my own litte Debian VM in the future, for now Windows has to suffice.</p>
<p><sup>2</sup> The reason for using RAR is simple: It comes preinstalled on all machines here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple backups with windows 1</title>
		<link>http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-1/</link>
		<comments>http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-1/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 14:51:08 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[Rar]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Zip]]></category>

		<guid isPermaLink="false">http://blog.himmelrath.net/?p=355</guid>
		<description><![CDATA[At my current workplace, working with Linux (or anything other than windows) seems to be something no one would even bother to think about.  So I had to dig into the world of Windows Batch Scripting in order to create those little tools that make my life  just a bit easier when using <a href="http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-1/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p class="remark">Ich werde mal versuchen einige meiner Einträge auf Englisch zu verfassen &#8211; um in der Übung zu bleiben.</p>
<p>At my current workplace, working with Linux (or anything other than windows) seems to be something no one would even bother to think about.  So I had to dig into the world of Windows Batch Scripting in order to create those little tools that make my life  just a bit easier when using linux.</p>
<p>The first thing I had to do was creating a script that simply backups folders. I have a folder which contains other folders that should be archived &#8211; I usually zip (or 7zip) them and move them to the backup space later, which is a fairly easy task using a bash-script and nautilus actions.</p>
<p>Under windows it&#8217;s not that much harder to accomplish. (In the following example I used WinRAR to compress the files because that&#8217;s what we use at work.)</p>
<p>The first thing I needed was of course the batch-file that does the actual work. Here it is:</p>
<pre>
@echo off

rem ===================== Begin Configuration =====================
rem !!! Do not use quotes for the values of the following variables !!!

rem Path to the WinRAR executable file
set winrarPath=%PROGRAMFILES%\WinRAR\WinRAR.exe

rem ====================== End Configuration ======================

rem Please only edit after this line if you know exactly what you are doing.

set curVer=0.1 [2009-11-26]

rem ======================== Begin Script ========================

rem Tell the user which version of the tool they use
echo.
echo                     Mi ArchiveSubfolders version %curVer%
echo.
echo.

if not exist "%winrarPath%" (
    echo Cannot find WinRAR exe file: %winrarPath%
    goto eof
)

set dir=%*
if not exist "%dir%" (
    echo The directory "%dir%" cannot be found
    goto eof
)

set dateString=%DATE:~-4,4%-%DATE:~-7,2%-%DATE:~0,2%_%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%

cd "%dir%"
for /D %%a in (*) do (
    rem Creating the archive
    echo Archiving "%%~na"...
    "%winrarPath%" M -afzip -ibck -inul -m5 "%dateString%-%%~na.zip" "%%a"
)

echo.
echo Archiving done

:eof
</pre>
<p>Now that is a nice, simple script, but what should I do with it? I wanted it to be useable directly in the explorer context-menu, so I made a small registry-entry. This is the exported .reg-file:</p>
<pre>
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\archiveSubfolders]
@="Mi: Archive Subfolders (ZIP)"

[HKEY_CLASSES_ROOT\Folder\shell\archiveSubfolders\Command]
@="cmd /c \"\"%%ProgramFiles%%\\MiTools\\archiveSubfolders\\archiveSubfolders.bat\"\" %1"
</pre>
<p>Now I wanted a simple installation-script, for really lazy people like me:</p>
<pre>
@echo off

set installDir=%PROGRAMFILES%\MiTools\archiveSubfolders

if not exist "%installDir%" (
    mkdir "%installDir%"
)

copy archiveSubfolders.bat "%installDir%"
copy "ArchiveSubfolders Context Menu Entry.reg" "%installDir%"

regedit /S "ArchiveSubfolders Context Menu Entry.reg"

echo Installation complete.

:eof
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.himmelrath.net/tec/prog/simple-backups-with-windows-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Komprimierung mit 7z</title>
		<link>http://blog.himmelrath.net/tec/comp/komprimierung-mit-7z/</link>
		<comments>http://blog.himmelrath.net/tec/comp/komprimierung-mit-7z/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:03:18 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[7z]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Komprimierung]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.himmelrath.net/?p=251</guid>
		<description><![CDATA[Ich komprimiere meine Dateien fast immer mit 7z, nur wenn ich Quellcode weitergebe nutze ich das traditionelle tar.bz2. Vor allem habe ich mir angewöhnt alles was ich an CD und DVD Images besitze vor dem verschieben auf die Backupplatte noch einmal zu komprimieren - der Zugriff muss ja nicht schnell <a href="http://blog.himmelrath.net/tec/comp/komprimierung-mit-7z/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p class="remark">Dies ist einer der Einträge in meinem Blog, der wohl hauptsächlich deshalb da ist, weil ich es wohl selbst wieder vergessen und daher nachschlagen müssen werde.</p>
<p>Ich komprimiere meine Dateien fast immer mit 7z, nur wenn ich Quellcode weitergebe nutze ich das traditionelle tar.bz2. Vor allem habe ich mir angewöhnt alles was ich an CD und DVD Images besitze vor dem verschieben auf die Backupplatte noch einmal zu komprimieren &#8211; der Zugriff muss ja nicht schnell gehen, sondern im Optimalfall nicht einmal nötig sein.</p>
<p>Da ich in diesem Fall keine Rücksicht auf irgend wen nehmen muss, kann ich die Parameter so wählen, dass ein für meinen Rechner optimale Komprimierung herauskommt &#8211; auch wenn es sich deshalb auf Rechnern mit wenig Arbeitsspeicher nicht mehr entpacken lassen würde.</p>
<p>Mein Kommando zur Komprimierung lautet (Achtung, nicht auf Systemen nutzen die weniger als 4GB Hauptspeicher haben):<br />
<code>nice -n 10 7z a -mx=9 -mmt=16 -t7z -mfb=258 -md=384m -ms=8g "[ZIEL].7z" "[DATEN]"</code></p>
<p>Kurze Erklärung:</p>
<table class="descriptionTable" border="0">
<tbody>
<tr>
<th>Kommandoteil</th>
<th>Bedeutung</th>
</tr>
<tr>
<td>nice -n 10</td>
<td>Starte das folgende Kommando mit geringer Priorität. Das bedeutet, dass man nebenher noch relativ gut arbeiten kann, bzw. andere Prozesse weniger ausgebremst werden.</td>
</tr>
<tr>
<td>7z a</td>
<td>Füge Daten zu einem Archiv hinzu (a steht für &#8220;add&#8221;).</td>
</tr>
<tr>
<td>-mx=9</td>
<td>Benutze die maximale Kompressionsstufe.</td>
</tr>
<tr>
<td>-mmt=16</td>
<td>Bestimmt die Anzahl der benutzten Threads. Alternativ kann man auch -mmt=on angeben, dann bestimmt 7z selbst die Anzahl der Threads. Bei meinen Tests war jedoch die Anzahl 16 (ich habe einen Dualcore Prozessor) seltsamerweise fast 10% schneller als die Angabe on.</td>
</tr>
<tr>
<td>-t7z</td>
<td>Sagt 7z, dass es das 7z-Format benutzen soll. Eigentlich überflüssig wenn wir den Archivnamen auf .7z enden lassen. Da 7z aber auch so ziemlich alle anderen halbwegs frei verfügbaren Komprimierungsverfahren unterstützt, gehe ich hier noch einmal sicher, dass auch wirklich das effiziente 7z benutzt wird.</td>
</tr>
<tr>
<td>-mfb=258</td>
<td>Die Wortgröße wird hier festgelegt. Faustregel: Je höher die Wortgröße, desto besser die Kompression. Dies ist, soweit ich weiß, der derzeitig maximal zulässige Wert.</td>
</tr>
<tr>
<td>-md=384m</td>
<td>Die Wörterbuchgröße. Auch heir gilt die gleiche Faustregel wie bei der Wortgröße, allerdings kann man hier noch deutlich größer werden. In diesem Fall ist die Wörterbuchgröße 384 MB &#8211; das bedeutet, dass man beim Entpacken schon mindestens 512 MB RAM haben muss und beim Komprimieren ungefähr das Zehnfache der Wörterbuchgröße. Ich habe 6 GB RAM und benutze daher diese Einstellung wenn ich über Nacht die Backups komprimiere. Sobald ich parallel noch Firefox, Thunderbird und Eclipse (um mal Speicherfresser zu nennen) benutzen will, setze ich den Wert auf unter 300m.</td>
</tr>
<tr>
<td>-ms=8g</td>
<td>Die maximale Größe der soliden Blöcke &#8211; auch hier gilt die gleiche Faustregel, auch wenn der Einfluss mit steigender Größe immer geringer wird. Alternativ sollte ein -ms=on auch dafür Sorgen, dass ein ganzes DVD-Image als ein großer Block (&#8220;solid&#8221;) komprimiert wird.</td>
</tr>
<tr>
<td>&#8220;[ZIEL].7z&#8221;</td>
<td>Das Zielarchiv. Es muss nicht auf .7z enden, aber das hat sich aus praktischen Gründen eingebürgert. Unter Windows sollte es natürlich auf jeden Fall so heißen, da Windows das Archiv nicht automatisch als solches erkennen kann.</td>
</tr>
<tr>
<td>&#8220;[DATEN]&#8220;</td>
<td>Das ist dann die Datei, die Dateien oder das Verzeichnis das komprimiert werden soll. Die Anführungsstriche kommen allerdings nicht um mehrere Dateien oder Verzeichnisse, sondern jeweils um eins (damit es keine Probleme mit Leerzeichen gibt).</td>
</tr>
</tbody>
</table>
<p>Um dann viele Images über Nacht zu komprimieren benutze ich folgendes Mini-Script:<br />
<code><br />
#!/bin/bash<br />
for i in *.iso; do<br />
  nice -n 10 7z a -mx=9 -mmt=16 -t7z -mfb=258 -md=384m -ms=8g "$i.7z" "$i"<br />
  if [[ $? -eq 0 &amp;&amp; -f "$i.7z" ]]; then<br />
    rm "$i"<br />
  fi<br />
done<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.himmelrath.net/tec/comp/komprimierung-mit-7z/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GRAND Flash Album Gallery Extras</title>
		<link>http://blog.himmelrath.net/tec/prog/grand-flash-album-gallery-extras/</link>
		<comments>http://blog.himmelrath.net/tec/prog/grand-flash-album-gallery-extras/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 09:44:42 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Photo]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>

		<guid isPermaLink="false">http://blog.himmelrath.net/?p=186</guid>
		<description><![CDATA[Heute mal auf Englisch, weil das Originalplugin auch in English zur Verfügung steht.

Update 2009-09-13: New version. Can now work around WP-Cache

GRAND Flash Album Gallery is a simple to use and professional looking way to present pictures on your website, it even has a nice looking full-screen-option.

There were two features that <a href="http://blog.himmelrath.net/tec/prog/grand-flash-album-gallery-extras/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Heute mal auf Englisch, weil das <a href="http://codeasily.com/wordpress-plugins/flash-album-gallery/flag">Originalplugin</a> auch in English zur Verfügung steht.</p>
<p><strong>Update 2009-09-13: New version. Can now work around WP-Cache</strong></p>
<p><a href="http://codeasily.com/wordpress-plugins/flash-album-gallery/flag">GRAND Flash Album Gallery</a> is a simple to use and professional looking way to present pictures on your website, it even has a nice looking full-screen-option.</p>
<p>There were two features that I really missed:</p>
<ul>
<li>Ability to link to a specific gallery and picture</li>
<li>Removing the [Gallery  not found]-tags from excerpts</li>
</ul>
<p>For those two I wrote my own little plugin called &#8220;<a href="http://blog.himmelrath.net/wp-content/uploads/2009/09/flash-album-gallery-extras.zip">flash-album-gallery-extras</a>&#8220;.<br />
It is more of a quickhack than a real plugin because I had to change the central <a href="http://blog.himmelrath.net/wp-content/uploads/2009/09/xml.php.zip">xml.php</a> file that comes with the Flash Album Gallery Skins (which is used to output an ordered xml-list of the pictures grouped by galleries) and because I use two Session-variables to &#8220;communicate&#8221; with the xml.php. Changing the flash that requests the xml to using additional GET-Parameters would be a cleaner approach, but that would require the authors help.</p>
<p>Maybe he likes my approach and integrates my code (or my idea) into his original solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.himmelrath.net/tec/prog/grand-flash-album-gallery-extras/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi-Desktop-Background-Creator&#8230;</title>
		<link>http://blog.himmelrath.net/misc/multi-desktop-background-creator/</link>
		<comments>http://blog.himmelrath.net/misc/multi-desktop-background-creator/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 08:53:51 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Sonstiges]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Bildbearbeitung]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Wallpaper]]></category>

		<guid isPermaLink="false">http://blog.himmelrath.net/?p=167</guid>
		<description><![CDATA[Ich arbeite entweder mit zwei Rechnern nebeneinander die über Synergy verbunden sind oder an einem Rechner mit zwei Monitoren. Bei zwei Monitoren an einem Rechner sieht das Hintergrundbild immer schlecht aus. Deshalb habe ich ein Bash-Script geschrieben dem man beliebig viele Monitorauflösungen von links nach rechts übergibt und einen Ordner <a href="http://blog.himmelrath.net/misc/multi-desktop-background-creator/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Ich arbeite entweder mit zwei Rechnern nebeneinander die über <a href="http://synergy2.sourceforge.net/" target="_blank">Synergy</a> verbunden sind oder an einem Rechner mit zwei Monitoren. Bei zwei Monitoren an einem Rechner sieht das Hintergrundbild immer schlecht aus. Deshalb habe ich ein Bash-Script geschrieben dem man beliebig viele Monitorauflösungen von links nach rechts übergibt und einen Ordner in dem die Bilder gesucht werden, dass dann zufällig aus den passenden Bildern ein großes passendes Bild zusammenstellt. Zusätzlich kann man konfigurieren ob nur passende Auflösungen verwendet werden sollen oder die Bilder nur verkleinert oder auch vergrößert werden sollen um auf den Monitor zu passen.</p>
<p>Hier die Beschreibung der Kommandozeilenoptionen:</p>
<pre style="font-size: 0.8em;">        -----===== createMultiDesktopWallpaper =====-----

 "createMultiDesktopWallpaper --of=OUTFILE sf=SEARCHFOLDER  RES1 RES2 [RES3 [...]]"

Concatenates the images in the given order and writes the result to the file
specified by --of

Obligatory parameters:
 --of=         The out-file, meaning the file to write the concatenated image
               to. This file will be overwritten without notice.
 --sf=         The folder to search in for images.
 RES[1-x]      The resolution of the Desktops for which the background should
               be created from left to right. The RES-parameters must have the
               form of WIDTHxHEIGHT (e.g. '1280x1024'). There have to be at least
               two RES-parameters

Optional parameters:
 --mode=       The mode for choosing the images. Possible values:
                 exact  - For every resolution an image with exactly the given
                          size is used. No resizing of images.
                 exact2 - Like exact, but needs a preordered search-folder. Use the
                          orderImagesByResolution script to order it. (Faster)
                 down   - Uses images that are at least as big as the given size
                          and resizes bigger images. This might lead to images being
                          cropped because they have a differnt ratio.
                 any    - Resizes any picture to the given resolution. This might
                          look bad if you have for example a 24" monitor and some
                          640x480 images in the search-folder
               Default: exact
 --background= The color of the background if the pictures do not have the same
               size. (default: black)
 --same        Use the same image for all resolutions. Only works with mode 'down'
               or 'any'
 --align=      Vertical alignment of images that are smaller that the biggest
               image given
 --verbose     Output additional information

Example:
   "createMultiDesktopWallpaper --of=bg.png --sf=Pictures 1920x1200 1280x1024"</pre>
<p>Um das Script zu benutzen benötigt man ImageMagick und die Scripte <a href="http://blog.himmelrath.net/wp-content/uploads/2009/08/createMultiDesktopWallpaper">createMultiDesktopWallpaper</a> und <a href="http://blog.himmelrath.net/wp-content/uploads/2009/08/concatenateImages">concatenateImage</a>. Wenn man die Geschwindigkeit optimieren will, kann man das <a href="http://blog.himmelrath.net/wp-content/uploads/2009/08/orderImagesByResolution">orderImagesByResolution</a> Script benutzen um die Bilder vorher zu ordnen und dann den Modus &#8220;exact2&#8243; nutzen.</p>
<p>Das Ergebnis sieht dann bei 1920&#215;1200 und 1280&#215;1024 z.B. so aus: (Aus zwei Photos die ich gemacht habe)</p>
<div id="attachment_172" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.himmelrath.net/wp-content/uploads/2009/08/Generated-Wallpaper.jpg"><img class="size-medium wp-image-172" title="Generated Wallpaper" src="http://blog.himmelrath.net/wp-content/uploads/2009/08/Generated-Wallpaper-300x112.jpg" alt="Generated Wallpaper" width="300" height="112" /></a><p class="wp-caption-text">Generiertes Wallpaper</p></div>
<p>Eine andere Sprache als bash wäre bezüglich Caching sicher sinnvoll gewesen, aber nicht bei meiner kleinen Auswahl an Wallpapern lohnt sich ein Caching Mechanismus noch nicht. Natürlich lässt sich ein Dateibasiertes Caching auch mit bash realisieren, aber besonders elegant geht das nunmal auch nicht.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.himmelrath.net/misc/multi-desktop-background-creator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Universelle Bashscript Vorlage</title>
		<link>http://blog.himmelrath.net/tec/prog/universelle-bashscript-vorlage/</link>
		<comments>http://blog.himmelrath.net/tec/prog/universelle-bashscript-vorlage/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 14:43:22 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[Vorlage]]></category>

		<guid isPermaLink="false">http://blog.himmelrath.net/?p=164</guid>
		<description><![CDATA[Ich schreibe immer mal wieder kleine Bashscripte für Alltagsaufgaben wie Backups und kleinere Aufgaben für die sich einfach keine großen Programme lohnen. Was mir immer gefehlt hat ist eine grundsätzliche Vorgehensweise die ich auf etwas größere Scripte anwenden kann um Parameter zu verarbeiten und eine Hilfe auszugeben.

Heute habe ich mir <a href="http://blog.himmelrath.net/tec/prog/universelle-bashscript-vorlage/">[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Ich schreibe immer mal wieder kleine Bashscripte für Alltagsaufgaben wie Backups und kleinere Aufgaben für die sich einfach keine großen Programme lohnen. Was mir immer gefehlt hat ist eine grundsätzliche Vorgehensweise die ich auf etwas größere Scripte anwenden kann um Parameter zu verarbeiten und eine Hilfe auszugeben.</p>
<p>Heute habe ich mir mal die Mühe gemacht eines meiner größeren Scripte so umzuschreiben, dass es als allgemeine Vorlage genutzt werden kann. Vielleicht hilft es ja jemandem.</p>
<p>Das <a href="/wp-content/uploads/2009/08/bashScriptTemplate">Bash Script Template</a> kann man sich <a href="/wp-content/uploads/2009/08/bashScriptTemplate">hier</a> herunterladen.</p>
<p>Das &#8220;Besondere&#8221; an dieser Scriptvorlage ist dass für die Hilfe alle Texte am Anfang des Script als Variablen definiert werden und die Parameter mit der vorgegebenen Methode in beliebiger Reihenfolge an das Programm übergeben werden können.</p>
<p>Über Rückmeldungen und Verbesserungsvorschläge freue ich mich immer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.himmelrath.net/tec/prog/universelle-bashscript-vorlage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
