<?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>PhYnformatik &#187; Planeten Blogger</title>
	<atom:link href="http://phynformatik.de/tag/planetenblogger/feed/" rel="self" type="application/rss+xml" />
	<link>http://phynformatik.de</link>
	<description>Linux, Games and More</description>
	<lastBuildDate>Sun, 19 Feb 2012 09:44:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>(Deutsch) Grooveshark in Deutschland nicht mehr zu erreichen</title>
		<link>http://phynformatik.de/2012/01/18/deutsch-grooveshark-in-deutschland-nicht-mehr-zu-erreichen/</link>
		<comments>http://phynformatik.de/2012/01/18/deutsch-grooveshark-in-deutschland-nicht-mehr-zu-erreichen/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 12:22:26 +0000</pubDate>
		<dc:creator>Phylu</dc:creator>
				<category><![CDATA[Internet Applications]]></category>
		<category><![CDATA[PhYnformatik]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Planeten Blogger]]></category>

		<guid isPermaLink="false">http://phynformatik.de/?p=1098</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://phynformatik.de/de/tag/planetenblogger/feed/">Deutsch</a>.</p>
 <p><a href="http://phynformatik.de/wordpress/?flattrss_redirect&amp;id=1098&amp;md5=f1a8d8f83934f77828a81accfbccebe1" title="Flattr" target="_blank"><img src="https://phynformatik.de/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://phynformatik.de/2012/01/18/deutsch-grooveshark-in-deutschland-nicht-mehr-zu-erreichen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Phylu&amp;url=http%3A%2F%2Fphynformatik.de%2F2012%2F01%2F18%2Fdeutsch-grooveshark-in-deutschland-nicht-mehr-zu-erreichen%2F&amp;language=de_DE&amp;category=text&amp;title=%28Deutsch%29+Grooveshark+in+Deutschland+nicht+mehr+zu+erreichen&amp;description=Sorry%2C+this+entry+is+only+available+in+Deutsch.&amp;tags=Free%2CInternet%2CMusic%2CPlaneten+Blogger%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Bash Example Script #2</title>
		<link>http://phynformatik.de/2012/01/05/bash-example-script-2/</link>
		<comments>http://phynformatik.de/2012/01/05/bash-example-script-2/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 23:32:09 +0000</pubDate>
		<dc:creator>Phylu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Desktop Software]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planeten Blogger]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[TUM]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://phynformatik.de/?p=1089</guid>
		<description><![CDATA[I have added the following function to my bash example script: # Run external command and only procced, when exit code is 0 function try { $@ returnValue=$? echo "$returnValue" if [ $returnValue -ne 0 ] then log $ERROR "$@ exited with return value \...]]></description>
			<content:encoded><![CDATA[<p>I have added the following function to my bash example script:</p>
<pre># Run external command and only procced, when exit code is 0
function try {
	$@
	returnValue=$?
	echo "$returnValue"
	if [ $returnValue -ne 0 ]
	then
		log $ERROR "$@ exited with return value \
		$returnValue Script will stop here."
		echo "$@ exited with return value $returnValue. \
		Script will stop here."
		exit $EXIT_FAILURE
	fi
}</pre>
<p>The function takes a program as an argument and runs in. If the program returns with a status other then 0, so it fails, then the script will print an error message, log it and and exits. I needed this behaviour in some recent scripts and hope it to be usefull for everybody else.</p>
 <p><a href="http://phynformatik.de/wordpress/?flattrss_redirect&amp;id=1089&amp;md5=5f5946a6fb1e589a5a9799aa189a804c" title="Flattr" target="_blank"><img src="https://phynformatik.de/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://phynformatik.de/2012/01/05/bash-example-script-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Phylu&amp;url=http%3A%2F%2Fphynformatik.de%2F2012%2F01%2F05%2Fbash-example-script-2%2F&amp;language=de_DE&amp;category=text&amp;title=Bash+Example+Script+%232&amp;description=I+have+added+the+following+function+to+my+bash+example+script%3A%0D%0A%23+Run+external+command+and+only+procced%2C+when+exit+code+is+0%0D%0Afunction+try+%7B%0D%0A%09%24%40%0D%0A%09returnValue%3D%24%3F%0D%0A%09echo+%22%24returnValue%22%0D%0A%09if+%5B+%24returnValue+-ne+0+%5D%0D%0A%09then%0D%0A%09%09log+%24ERROR+%22%24%40+exited+with+return+value+%5C%0D%0A%09%09%24returnValue+Script+will+stop+here.%22%0D%0A%09%09echo+%22%24%40+exited+with+return+value+%24returnValue.+%5C%0D%0A%09%09Script+will+stop+here.%22%0D%0A%09%09exit+%24EXIT_FAILURE%0D%0A%09fi%0D%0A%7D%0D%0AThe+function+takes+a+program+as+an+argument+and+runs+in.+If+the+program+returns+with+a+status+other+then+0%2C+so+it+fails%2C+then+the+script+will+print+an+error+message%2C+log+it+and+and+exits.+I+needed+this+behaviour+in+some+recent+scripts+and+hope+it+to+be+usefull+for+everybody+else.&amp;tags=Free%2CInternet%2CLinux%2CPlaneten+Blogger%2CScript%2CTUM%2CTutorial%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Bash Example Script</title>
		<link>http://phynformatik.de/2011/12/29/bash-example-script/</link>
		<comments>http://phynformatik.de/2011/12/29/bash-example-script/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 16:54:12 +0000</pubDate>
		<dc:creator>Phylu</dc:creator>
				<category><![CDATA[Desktop Software]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[PhYnformatik]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planeten Blogger]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[TUM]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://phynformatik.de/?p=1072</guid>
		<description><![CDATA[These days I use bash more and more often for simple tasks on my Linux system, as well as for a University course I am taking. Have a look at the script: #!/bin/bash # Skript: bash_example.sh # Credit to: http://www.pro-linux.de/artikel/2/111/ #1,ein-shellskript-template.html # # I have...]]></description>
			<content:encoded><![CDATA[<p>These days I use bash more and more often for simple tasks on my Linux system, as well as for a University course I am taking.</p>
<p>Have a look at the script:</p>
<pre>#!/bin/bash
# Skript: bash_example.sh
# Credit to: http://www.pro-linux.de/artikel/2/111/
#1,ein-shellskript-template.html
#
# I have added some usefull functions that I am using in many
# of my scripts
# Find this script here: http://phynformatik.de
# Janosch Maier
#
# This work is licensed under the
# Creative Commons Attribution-Share Alike License
#
# You are free
# to Share — to copy, distribute and transmit the work
# to Remix — to adapt the work
# to make commercial use of the work
#
# Under the following conditions:
# Attribution — You must attribute the work in the manner
# specified by the author or licensor (but not in any way
# that suggests that they endorse you or your use of the work).
# Share Alike — If you alter, transform, or build upon this
# work, you may distribute the resulting work only under the
# same or similar license to this one.
version="0.1"
lastChange="14.12.2011"

#### CONFIG - DO NOT MAKE CHANGES HERE ####
# PATH has to be a trusted value
# Try to make this script save in unsave environments
# "." cannot be in PATH
PATH=/bin:/sbin:/usr/bin:/usr/sbin/:/usr/local/bin:/usr/local/sbin
export PATH

# Environment variable IFS should always be
# "" or undefined
# Same as with PATH
if [ -z "$IFS" ]
then
        IFS="
"
        export IFS
fi

#### YOU CAN START MAKING CHANGES FROM HERE ON ####
# Define global variables for later use
# Name of the script is its filename (without possible suffix .sh)
SCRIPTNAME=$(basename $0 .sh)
# Define Exit values
EXIT_SUCCESS=0
EXIT_FAILURE=1
EXIT_ERROR=2
EXIT_BUG=10
# Logfile will be put under current working directory
LOGFILE=`readlink -f "$SCRIPTNAME.log"`

# Error values
ERROR="ERROR"
WARNING="WARNING"
INFO="INFO"
NOTICE="NOTICE"

# Default values for options
VERBOSE=false
DEBUGLEVEL=1

#### FUNCTIONS FOR LATER USE ####
# Print usage message
function usage {
	echo "Usage: $SCRIPTNAME [-h] [-v] [-d debuglevel] file ...

  -h		show this help
  -v		be verbose
  -d		set debug level (1-9)
	[[ $# -eq 1 ]] &amp;&amp; exit $1 || exit $EXIT_FAILURE
}

# Log stuff to the defined logfile
# Call "log $ERROR|$WARNING|$INFO|$NOTICE message"
function log {
	case $1 in
		$ERROR)
			if [ $DEBUGLEVEL -ge 1 ]
			then
				shift
				echo "$(date '+%F %T') $ERROR: $@" \
                                &gt;&gt; $LOGFILE
			fi
			;;
		$WARNING)
			if [ $DEBUGLEVEL -ge 3 ]
			then
				shift
				echo "$(date '+%F %T') $WARNING: $@" \
                                &gt;&gt; $LOGFILE
			fi
			;;
		$INFO)
			if [ $DEBUGLEVEL -ge 5 ]
			then
				shift
				echo "$(date '+%F %T') $INFO: $@" \
                                &gt;&gt; $LOGFILE
			fi
			;;
		$NOTICE)
			if [ $DEBUGLEVEL -ge 7 ]
			then
				shift
				echo "$(date '+%F %T') $NOTICE: $@" \
                                &gt;&gt; $LOGFILE
			fi
			;;
		*)
			echo "$(date '+%F %T') BUG: $@" \
                        &gt;&gt; $LOGFILE
			;;
	esac
}

# Echo a string if verbose mode is set
# Log as an Info message in any case
function echo_verbose {
	if [ "$VERBOSE" == "true" ]
	then
		echo $@
	fi
	log $INFO "$@"
}

# Echo a string and put it to Error log
function echo_error {
        log $ERROR "$@"
        echo "$ERROR: $@" &gt;&amp;2
}

#### GETTING ALL OPTIONS #####
# Option -h gives some help
# Option -v makes the script verbose
# Option -o has one option argument therefore o:
while getopts ':o:d:vh' OPTION ; do
	case $OPTION in
		v) VERBOSE=true
		;;
 		h) usage $EXIT_SUCCESS
 		;;
		d) DEBUGLEVEL="$OPTARG"
		;;
 		\?) echo "Unknown Option \"-$OPTARG\"." &gt;&amp;2
 		usage $EXIT_ERROR
 		;;
	 <img src='http://phynformatik.de/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  echo "Option \"-$OPTARG\" needs an argument." &gt;&amp;2
		usage $EXIT_ERROR
		;;
		*) echo "There should never happen..." &gt;&amp;2
		usage $EXIT_BUG
		;;
	esac
done

#### DO CHECKS ON THE ARGUMENTS ####
# $OPTIND is number of options gotten by getopts + 1
# Therefore shift arguments gotte by OPTIND - 1
shift $(( OPTIND - 1 ))

# Check if the number of arguments gotten is correct
if (( $# &lt; 1 || $# &gt; 2)) ; then
	echo "One or two arguments needed." &gt;&amp;2
	log ERR "1 or 2 arguments needed. $# arguments gotten"
	usage $EXIT_ERROR
fi

#### DO SOME STUFF HERE ####
# Do something for all other arguments
for ARG ; do
	echo_verbose "Doing stuff for an argument"
	echo $ARG
done

# The script succeded doing its work
exit $EXIT_SUCCESS</pre>
<p>&nbsp;</p>
<p>I have tried to comment the script as good as possible. Explanation for some parts of the script can be found at the <a title="Ein Shellscript-Template" href="http://www.pro-linux.de/artikel/2/111/2,ein-shellskript-template.html">page</a> the base for this script originates from. Feel free to ask questions, if something is not understandable.</p>
<p>&nbsp;</p>
<p>Download the script: <a href="http://phynformatik.de/wordpress/wp-content/uploads/2011/12/bash_example.sh_.txt">bash_example.sh</a>.</p>
 <p><a href="http://phynformatik.de/wordpress/?flattrss_redirect&amp;id=1072&amp;md5=36df4826ad5ac56fc099251201351fc6" title="Flattr" target="_blank"><img src="https://phynformatik.de/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://phynformatik.de/2011/12/29/bash-example-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Phylu&amp;url=http%3A%2F%2Fphynformatik.de%2F2011%2F12%2F29%2Fbash-example-script%2F&amp;language=de_DE&amp;category=text&amp;title=Bash+Example+Script&amp;description=These+days+I+use+bash+more+and+more+often+for+simple+tasks+on+my+Linux+system%2C+as+well+as+for+a+University+course+I+am+taking.%0D%0A%0D%0AHave+a+look+at+the+script%3A%0D%0A%23%21%2Fbin%2Fbash%0D%0A%23+Skript%3A+bash_example.sh%0D%0A%23+Credit+to%3A+http%3A%2F%2Fwww.pro-linux.de%2Fartikel%2F2%2F111%2F%0D%0A%231%2Cein-shellskript-template.html%0D%0A%23%0D%0A%23+I+have+added+some+usefull+functions+that+I+am+using+in+many%0D%0A%23+of+my+scripts%0D%0A%23+Find+this+script+here%3A+http%3A%2F%2Fphynformatik.de%0D%0A%23+Janosch+Maier%0D%0A%23%0D%0A%23+This+work+is+licensed+under+the%0D%0A%23+Creative+Commons+Attribution-Share+Alike+License%0D%0A%23%0D%0A%23+You+are+free%0D%0A%23+to+Share+%E2%80%94+to+copy%2C+distribute+and+transmit+the+work%0D%0A%23+to+Remix+%E2%80%94+to+adapt+the+work%0D%0A%23+to+make+commercial+use+of+the+work%0D%0A%23%0D%0A%23+Under+the+following+conditions%3A%0D%0A%23+Attribution+%E2%80%94+You+must+attribute+the+work+in+the+manner%0D%0A%23+specified+by+the+author+or+licensor+%28but+not+in+any+way%0D%0A%23+that+suggests+that+they+endorse+you+or+your+use+of+the+work%29.%0D%0A%23+Share+Alike+%E2%80%94+If+you+alter%2C+transform%2C+or+build+upon+this%0D%0A%23+work%2C+you+may+distribute+the+resulting+work+only+under+the%0D%0A%23+same+or+similar+license+to+this+one.%0D%0Aversion%3D%220.1%22%0D%0AlastChange%3D%2214.12.2011%22%0D%0A%0D%0A%23%23%23%23+CONFIG+-+DO+NOT+MAKE+CHANGES+HERE+%23%23%23%23%0D%0A%23+PATH+has+to+be+a+trusted+value%0D%0A%23+Try+to+make+this+script+save+in+unsave+environments%0D%0A%23+%22.%22+cannot+be+in+PATH%0D%0APATH%3D%2Fbin%3A%2Fsbin%3A%2Fusr%2Fbin%3A%2Fusr%2Fsbin%2F%3A%2Fusr%2Flocal%2Fbin%3A%2Fusr%2Flocal%2Fsbin%0D%0Aexport+PATH%0D%0A%0D%0A%23+Environment+variable+IFS+should+always+be%0D%0A%23+%22%22+or+undefined%0D%0A%23+Same+as+with+PATH%0D%0Aif+%5B+-z+%22%24IFS%22+%5D%0D%0Athen%0D%0A++++++++IFS%3D%22%0D%0A%22%0D%0A++++++++export+IFS%0D%0Afi%0D%0A%0D%0A%23%23%23%23+YOU+CAN+START+MAKING+CHANGES+FROM+HERE+ON+%23%23%23%23%0D%0A%23+Define+global+variables+for+later+use%0D%0A%23+Name+of+the+script+is+its+filename+%28without+possible+suffix+.sh%29%0D%0ASCRIPTNAME%3D%24%28basename+%240+.sh%29%0D%0A%23+Define+Exit+values%0D%0AEXIT_SUCCESS%3D0%0D%0AEXIT_FAILURE%3D1%0D%0AEXIT_ERROR%3D2%0D%0AEXIT_BUG%3D10%0D%0A%23+Logfile+will+be+put+under+current+working+directory%0D%0ALOGFILE%3D%60readlink+-f+%22%24SCRIPTNAME.log%22%60%0D%0A%0D%0A%23+Error+values%0D%0AERROR%3D%22ERROR%22%0D%0AWARNING%3D%22WARNING%22%0D%0AINFO%3D%22INFO%22%0D%0ANOTICE%3D%22NOTICE%22%0D%0A%0D%0A%23+Default+values+for+options%0D%0AVERBOSE%3Dfalse%0D%0ADEBUGLEVEL%3D1%0D%0A%0D%0A%23%23%23%23+FUNCTIONS+FOR+LATER+USE+%23%23%23%23%0D%0A%23+Print+usage+message%0D%0Afunction+usage+%7B%0D%0A%09echo+%22Usage%3A+%24SCRIPTNAME+%5B-h%5D+%5B-v%5D+%5B-d+debuglevel%5D+file+...%0D%0A%0D%0A++-h%09%09show+this+help%0D%0A++-v%09%09be+verbose%0D%0A++-d%09%09set+debug+level+%281-9%29%0D%0A%09%5B%5B+%24%23+-eq+1+%5D%5D+%26amp%3B%26amp%3B+exit+%241+%7C%7C+exit+%24EXIT_FAILURE%0D%0A%7D%0D%0A%0D%0A%23+Log+stuff+to+the+defined+logfile%0D%0A%23+Call+%22log+%24ERROR%7C%24WARNING%7C%24INFO%7C%24NOTICE+message%22%0D%0Afunction+log+%7B%0D%0A%09case+%241+in%0D%0A%09%09%24ERROR%29%0D%0A%09%09%09if+%5B+%24DEBUGLEVEL+-ge+1+%5D%0D%0A%09%09%09then%0D%0A%09%09%09%09shift%0D%0A%09%09%09%09echo+%22%24%28date+%27%2B%25F+%25T%27%29+%24ERROR%3A+%24%40%22+%5C%0D%0A++++++++++++++++++++++++++++++++%26gt%3B%26gt%3B+%24LOGFILE%0D%0A%09%09%09fi%0D%0A%09%09%09%3B%3B%0D%0A%09%09%24WARNING%29%0D%0A%09%09%09if+%5B+%24DEBUGLEVEL+-ge+3+%5D%0D%0A%09%09%09then%0D%0A%09%09%09%09shift%0D%0A%09%09%09%09echo+%22%24%28date+%27%2B%25F+%25T%27%29+%24WARNING%3A+%24%40%22+%5C%0D%0A++++++++++++++++++++++++++++++++%26gt%3B%26gt%3B+%24LOGFILE%0D%0A%09%09%09fi%0D%0A%09%09%09%3B%3B%0D%0A%09%09%24INFO%29%0D%0A%09%09%09if+%5B+%24DEBUGLEVEL+-ge+5+%5D%0D%0A%09%09%09then%0D%0A%09%09%09%09shift%0D%0A%09%09%09%09echo+%22%24%28date+%27%2B%25F+%25T%27%29+%24INFO%3A+%24%40%22+%5C%0D%0A++++++++++++++++++++++++++++++++%26gt%3B%26gt%3B+%24LOGFILE%0D%0A%09%09%09fi%0D%0A%09%09%09%3B%3B%0D%0A%09%09%24NOTICE%29%0D%0A%09%09%09if+%5B+%24DEBUGLEVEL+-ge+7+%5D%0D%0A%09%09%09then%0D%0A%09%09%09%09shift%0D%0A%09%09%09%09echo+%22%24%28date+%27%2B%25F+%25T%27%29+%24NOTICE%3A+%24%40%22+%5C%0D%0A++++++++++++++++++++++++++++++++%26gt%3B%26gt%3B+%24LOGFILE%0D%0A%09%09%09fi%0D%0A%09%09%09%3B%3B%0D%0A%09%09%2A%29%0D%0A%09%09%09echo+%22%24%28date+%27%2B%25F+%25T%27%29+BUG%3A+%24%40%22+%5C%0D%0A++++++++++++++++++++++++%26gt%3B%26gt%3B+%24LOGFILE%0D%0A%09%09%09%3B%3B%0D%0A%09esac%0D%0A%7D%0D%0A%0D%0A%23+Echo+a+string+if+verbose+mode+is+set%0D%0A%23+Log+as+an+Info+message+in+any+case%0D%0Afunction+echo_verbose+%7B%0D%0A%09if+%5B+%22%24VERBOSE%22+%3D%3D+%22true%22+%5D%0D%0A%09then%0D%0A%09%09echo+%24%40%0D%0A%09fi%0D%0A%09log+%24INFO+%22%24%40%22%0D%0A%7D%0D%0A%0D%0A%23+Echo+a+string+and+put+it+to+Error+log%0D%0Afunction+echo_error+%7B%0D%0A++++++++log+%24ERROR+%22%24%40%22%0D%0A++++++++echo+%22%24ERROR%3A+%24%40%22+%26gt%3B%26amp%3B2%0D%0A%7D%0D%0A%0D%0A%23%23%23%23+GETTING+ALL+OPTIONS+%23%23%23%23%23%0D%0A%23+Option+-h+gives+some+help%0D%0A%23+Option+-v+makes+the+script+verbose%0D%0A%23+Option+-o+has+one+option+argument+therefore+o%3A%0D%0Awhile+getopts+%27%3Ao%3Ad%3Avh%27+OPTION+%3B+do%0D%0A%09case+%24OPTION+in%0D%0A%09%09v%29+VERBOSE%3Dtrue%0D%0A%09%09%3B%3B%0D%0A+%09%09h%29+usage+%24EXIT_SUCCESS%0D%0A+%09%09%3B%3B%0D%0A%09%09d%29+DEBUGLEVEL%3D%22%24OPTARG%22%0D%0A%09%09%3B%3B%0D%0A+%09%09%5C%3F%29+echo+%22Unknown+Option+%5C%22-%24OPTARG%5C%22.%22+%26gt%3B%26amp%3B2%0D%0A+%09%09usage+%24EXIT_ERROR%0D%0A+%09%09%3B%3B%0D%0A%09%09%3A%29+echo+%22Option+%5C%22-%24OPTARG%5C%22+needs+an+argument.%22+%26gt%3B%26amp%3B2%0D%0A%09%09usage+%24EXIT_ERROR%0D%0A%09%09%3B%3B%0D%0A%09%09%2A%29+echo+%22There+should+never+happen...%22+%26gt%3B%26amp%3B2%0D%0A%09%09usage+%24EXIT_BUG%0D%0A%09%09%3B%3B%0D%0A%09esac%0D%0Adone%0D%0A%0D%0A%23%23%23%23+DO+CHECKS+ON+THE+ARGUMENTS+%23%23%23%23%0D%0A%23+%24OPTIND+is+number+of+options+gotten+by+getopts+%2B+1%0D%0A%23+Therefore+shift+arguments+gotte+by+OPTIND+-+1%0D%0Ashift+%24%28%28+OPTIND+-+1+%29%29%0D%0A%0D%0A%23+Check+if+the+number+of+arguments+gotten+is+correct%0D%0Aif+%28%28+%24%23+%26lt%3B+1+%7C%7C+%24%23+%26gt%3B+2%29%29+%3B+then%0D%0A%09echo+%22One+or+two+arguments+needed.%22+%26gt%3B%26amp%3B2%0D%0A%09log+ERR+%221+or+2+arguments+needed.+%24%23+arguments+gotten%22%0D%0A%09usage+%24EXIT_ERROR%0D%0Afi%0D%0A%0D%0A%23%23%23%23+DO+SOME+STUFF+HERE+%23%23%23%23%0D%0A%23+Do+something+for+all+other+arguments%0D%0Afor+ARG+%3B+do%0D%0A%09echo_verbose+%22Doing+stuff+for+an+argument%22%0D%0A%09echo+%24ARG%0D%0Adone%0D%0A%0D%0A%23+The+script+succeded+doing+its+work%0D%0Aexit+%24EXIT_SUCCESS%0D%0A%26nbsp%3B%0D%0A%0D%0AI+have+tried+to+comment+the+script+as+good+as+possible.+Explanation+for+some+parts+of+the+script+can+be+found+at+the+page+the+base+for+this+script+originates+from.+Feel+free+to+ask+questions%2C+if+something+is+not+understandable.%0D%0A%0D%0A%26nbsp%3B%0D%0A%0D%0ADownload+the+script%3A%C2%A0bash_example.sh.&amp;tags=Free%2CInternet%2CLinux%2CPlaneten+Blogger%2CScript%2CTUM%2CTutorial%2Cblog" type="text/html" />
	</item>
		<item>
		<title>(Deutsch) Austreten?</title>
		<link>http://phynformatik.de/2011/05/04/deutsch-austreten/</link>
		<comments>http://phynformatik.de/2011/05/04/deutsch-austreten/#comments</comments>
		<pubDate>Wed, 04 May 2011 18:10:10 +0000</pubDate>
		<dc:creator>Phylu</dc:creator>
				<category><![CDATA[Desktop Software]]></category>
		<category><![CDATA[PhYnformatik]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Planeten Blogger]]></category>

		<guid isPermaLink="false">http://phynformatik.de/?p=1011</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://phynformatik.de/de/tag/planetenblogger/feed/">Deutsch</a>.</p>
 <p><a href="http://phynformatik.de/wordpress/?flattrss_redirect&amp;id=1011&amp;md5=02fbe57281932305309a11ebdc6d7783" title="Flattr" target="_blank"><img src="https://phynformatik.de/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://phynformatik.de/2011/05/04/deutsch-austreten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Phylu&amp;url=http%3A%2F%2Fphynformatik.de%2F2011%2F05%2F04%2Fdeutsch-austreten%2F&amp;language=de_DE&amp;category=text&amp;title=%28Deutsch%29+Austreten%3F&amp;description=Sorry%2C+this+entry+is+only+available+in+Deutsch.&amp;tags=Fun%2CPlaneten+Blogger%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Are Geodata evil?</title>
		<link>http://phynformatik.de/2011/05/02/are-geodata-evil/</link>
		<comments>http://phynformatik.de/2011/05/02/are-geodata-evil/#comments</comments>
		<pubDate>Sun, 01 May 2011 21:40:57 +0000</pubDate>
		<dc:creator>Phylu</dc:creator>
				<category><![CDATA[Desktop Software]]></category>
		<category><![CDATA[Internet Applications]]></category>
		<category><![CDATA[PhYnformatik]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Planeten Blogger]]></category>

		<guid isPermaLink="false">http://phynformatik.de/?p=1000</guid>
		<description><![CDATA[I am currently working with some friends on an Android application, that is using geodata. Your current location is the most important thing to make this app work. We are then working with this and some other data and making a query to Google.  The...]]></description>
			<content:encoded><![CDATA[<p>I am currently working with some friends on an Android application, that is using geodata. Your current location is the most important thing to make this app work. We are then working with this and some other data and making a query to Google.  The app does not persistently save your location anywhere.</p>
<p>Nevertheless: Is it evil? It will send your location to Google in your behalf…</p>
 <p><a href="http://phynformatik.de/wordpress/?flattrss_redirect&amp;id=1000&amp;md5=907f8daab92c56f9d80d2e664847507b" title="Flattr" target="_blank"><img src="https://phynformatik.de/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://phynformatik.de/2011/05/02/are-geodata-evil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Phylu&amp;url=http%3A%2F%2Fphynformatik.de%2F2011%2F05%2F02%2Fare-geodata-evil%2F&amp;language=de_DE&amp;category=text&amp;title=Are+Geodata+evil%3F&amp;description=I+am+currently+working+with+some+friends+on+an+Android+application%2C+that+is+using+geodata.+Your+current+location+is+the+most+important+thing+to+make+this+app+work.+We+are+then+working+with+this+and+some+other+data+and+making+a+query+to+Google.+%C2%A0The+app+does+not+persistently+save+your+location+anywhere.%0D%0A%0D%0ANevertheless%3A+Is+it+evil%3F+It+will+send+your+location+to+Google+in+your+behalf%E2%80%A6&amp;tags=Android%2CInternet%2CPlaneten+Blogger%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.phynformatik.de/tag/planetenblogger/feed/ ) in 0.50661 seconds, on Feb 23rd, 2012 at 2:52 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 23rd, 2012 at 3:52 am UTC -->
