<?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>Otmanix' Blog &#187; Shell</title>
	<atom:link href="http://otmanix.de/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://otmanix.de</link>
	<description>Wissenswertes und Belangloses aus dem Leben eines Admins</description>
	<lastBuildDate>Sat, 11 Feb 2012 00:58:23 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Networker client vollst&#228;ndig l&#246;schen redux</title>
		<link>http://otmanix.de/2011/02/22/networker-client-vollstaendig-loeschen-redux/</link>
		<comments>http://otmanix.de/2011/02/22/networker-client-vollstaendig-loeschen-redux/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 16:33:19 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Networker]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=2145</guid>
		<description><![CDATA[Das Thema hatte ich bereits vorgestellt. Hier nun ein Shellskript zum korrekten L&#246;schen eines Networker Clients (inkl. savesets und software repository): #!/bin/bash echo "Welcher Networker Client ist zu loeschen? " read CLIENT echo "Soll der Client " $CLIENT " inkl. &#8230; <a href="http://otmanix.de/2011/02/22/networker-client-vollstaendig-loeschen-redux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Das Thema hatte ich <a href="http://otmanix.de/2009/12/12/networker-client-vollstaendig-loeschen/">bereits vorgestellt</a>. Hier nun ein Shellskript zum korrekten L&#246;schen eines Networker Clients (inkl. savesets und software repository):<br />
<code><br />
#!/bin/bash<br />
echo "Welcher Networker Client ist zu loeschen? "<br />
read CLIENT<br />
echo "Soll der Client " $CLIENT " inkl. Savesets wirklich geloescht werden? j/n"<br />
read TASTE<br />
if [ "$TASTE" == "j" -o "$TASTE" == "J" ] ; then<br />
echo "loesche Savesets..."<br />
for xxx in `mminfo -av -r "ssid(53)" -c $CLIENT`; do nsrmm -d -S $xxx -y ; echo $xxx; done<br />
echo "loesche client index..."<br />
nsrck -YR $CLIENT<br />
rm -r /nsr/index/$CLIENT<br />
echo "bereinige Mediendatenbank..."<br />
nsrim -c $CLIENT -X<br />
echo "loesche Client..."<br />
echo "delete type: NSR client; name: $CLIENT;" | nsradmin -i -<br />
echo "loesche Client aus Software-Inventar..."<br />
echo "delete type: NSR Installed Software; name: $CLIENT;" | nsradmin -d /nsr/res/cpdb -i -<br />
else<br />
echo "Vorgang abgebrochen!"<br />
fi<br />
</code><br />
ein kurzer Testlauf&#8230;<br />
<code>root@backup1 # ./delnwclient.sh<br />
Welcher Networker Client ist zu loeschen?<br />
testpc<br />
Soll der Client  testpc  inkl. Savesets wirklich geloescht werden? j/n<br />
J<br />
cb9adc51-00000006-bb38a2d0-4d38a2d0-b6460014-4f222e18<br />
859b11e9-00000006-cc39f43e-4d39f43e-bf350014-4f222e18<br />
...<br />
loesche client index...<br />
9503:nsrck: WARNING: -R will completely remove the following file indices:<br />
testpc<br />
If it was not your intent to completely remove the above<br />
client file indices, kill this command now.  You have 6 seconds.<br />
If it was not your intent to completely remove the above<br />
client file indices, kill this command now.  You have 4 seconds.<br />
If it was not your intent to completely remove the above<br />
client file indices, kill this command now.  You have 2 seconds.<br />
bereinige Mediendatenbank...<br />
000001:  767 GB used,    35 save sets, full, 30 browsable save sets, 5 recoverable save sets<br />
000002:  592 GB used,    34 save sets, full, 17 browsable save sets, 17 recoverable save sets<br />
...<br />
loesche Client...<br />
deleted resource id 26.6.2.57.0.0.0.0.0.0.0.0.71.56.81.247.10.17.18.145(16)<br />
loesche Client aus Software-Inventar...<br />
deleted resource id 0.84.112.54.0.0.0.0.0.0.0.0.72.59.214.64.10.17.18.145(4)<br />
deleted resource id 0.85.112.54.0.0.0.0.0.0.0.0.72.59.214.64.10.17.18.145(4)<br />
deleted resource id 0.86.112.54.0.0.0.0.0.0.0.0.72.59.214.64.10.17.18.145(4)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2011/02/22/networker-client-vollstaendig-loeschen-redux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PuTTY, Umlaute und Unicode</title>
		<link>http://otmanix.de/2007/10/21/putty-umlaute-und-unicode/</link>
		<comments>http://otmanix.de/2007/10/21/putty-umlaute-und-unicode/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 18:49:49 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://otmanix.de/2007/10/21/putty-umlaute-und-unicode/</guid>
		<description><![CDATA[Wer beim beliebten Telnet/SSH-Client PuTTY Probleme mit Umlauten hat, der sollte mal die Spracheinstellungen pr&#252;fen: root@sun-vm1:/home/otmanix # locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_ALL= Hier funktionieren die Umlaute standardm&#228;&#223;ig nicht, weil die Voreinstellung von PuTTY ISO-8859-1 ist &#8211; &#8230; <a href="http://otmanix.de/2007/10/21/putty-umlaute-und-unicode/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer beim beliebten <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" title="PuTTY" target="_blank">Telnet/SSH-Client PuTTY</a> Probleme mit Umlauten hat, der sollte mal die Spracheinstellungen pr&#252;fen:</p>
<p><code>root@sun-vm1:/home/otmanix # locale<br />
LANG=en_US.UTF-8<br />
LC_CTYPE="en_US.UTF-8"<br />
LC_NUMERIC="en_US.UTF-8"<br />
LC_TIME="en_US.UTF-8"<br />
LC_COLLATE="en_US.UTF-8"<br />
LC_MONETARY="en_US.UTF-8"<br />
LC_MESSAGES="en_US.UTF-8"<br />
LC_ALL=<br />
</code><br />
Hier funktionieren die Umlaute standardm&#228;&#223;ig nicht, weil die Voreinstellung von PuTTY  <em>ISO-8859-1</em> ist &#8211; deshalb unter <em>change settings &gt; windows &#8211; translations</em> auf <em>UTF8</em> umstellen.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2007/10/21/putty-umlaute-und-unicode/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ksh93 &#8211; Prompt konfigurieren</title>
		<link>http://otmanix.de/2007/10/21/ksh93-prompt-konfigurieren/</link>
		<comments>http://otmanix.de/2007/10/21/ksh93-prompt-konfigurieren/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 13:31:55 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[ksh93]]></category>
		<category><![CDATA[Prompt]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://otmanix.de/2007/10/21/ksh93-prompt-konfigurieren/</guid>
		<description><![CDATA[Sch&#246;n, da&#223; nun die ksh93 schon zum Standard-Lieferumfang von OpenSolaris geh&#246;rt. Noch sch&#246;ner, da&#223; auch die Befehlszeilenerg&#228;nzung per Tab und Befehlshistorie per Cursor-Tasten funktionieren. Der Prompt sieht aber nicht unbedingt einladend aus. In der Datei /etc/ksh.kshrc kann systemweit die Umgebung &#8230; <a href="http://otmanix.de/2007/10/21/ksh93-prompt-konfigurieren/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sch&#246;n, da&#223; nun die ksh93 schon zum Standard-Lieferumfang von OpenSolaris geh&#246;rt. Noch sch&#246;ner, da&#223; auch die Befehlszeilenerg&#228;nzung per Tab und Befehlshistorie per Cursor-Tasten funktionieren. Der Prompt sieht aber nicht unbedingt einladend aus. In der Datei /etc/ksh.kshrc kann systemweit die Umgebung der ksh93 gesetzt werden. Hier dazu ein Bespiel:</p>
<p><code><br />
<strong> /etc/ksh.kshrc</strong></code><br />
<code><br />
...<br />
# ksh93 Shell-Prompt<br />
# Tips dazu unter http://www.understudy.net/custom.html<br />
export USERNAME=`whoami`<br />
export HOSTNAME=`hostname`<br />
# einfarbig<br />
#export PS1="'$USERNAME'@'$HOSTNAME':"'$PWD'" # "<br />
# bunt<br />
export PS1="$'\E[31m''$USERNAME'$'\E[0m'@$'\E[1;31m''$HOSTNAME'$'\E[0m':"$'\E[1;34m''$PWD'" $'\E[0m'#</code></p>
<p>Hier das Resultat mit hellem und dunklem Hintergrund:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2007/10/ksh93-00.jpg"><img src="http://otmanix.de/wp-content/uploads/2007/10/ksh93-00.thumbnail.jpg" /> </a><a href="http://otmanix.de/wp-content/uploads/2007/10/ksh93-01.jpg"><img src="http://otmanix.de/wp-content/uploads/2007/10/ksh93-01.thumbnail.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2007/10/21/ksh93-prompt-konfigurieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: ksh93</title>
		<link>http://otmanix.de/2007/08/18/update-ksh93/</link>
		<comments>http://otmanix.de/2007/08/18/update-ksh93/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 20:06:53 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ksh93]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://otmanix.de/2007/08/18/update-ksh93/</guid>
		<description><![CDATA[OpenSolaris Nevada Build 72 enth&#228;lt die ksh93.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.opensolaris.org/os/community/on/flag-days/71-75/" title="nv72 ksh93" target="_blank">OpenSolaris Nevada Build 72</a> enth&#228;lt die ksh93.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2007/08/18/update-ksh93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell wars &#8211; bash vs. ksh93</title>
		<link>http://otmanix.de/2007/08/13/shell-wars-bash-vs-ksh93/</link>
		<comments>http://otmanix.de/2007/08/13/shell-wars-bash-vs-ksh93/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 20:04:40 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Indiana]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ksh93]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://otmanix.de/2007/08/13/shell-wars-bash-vs-ksh93/</guid>
		<description><![CDATA[Auf der Project Indiana Diskussionsliste wird zurzeit ein Krieg ausgetragen: Wer beerbt /usr/bin/sh als Standard-Shell? Wie bei jeder TV-tauglichen Nachla&#223;geschichte geht es bei der Diskussion ums Erbe nicht immer sachlich zu. Da bei Indiana das Thema Linux eine gro&#223;e Rolle &#8230; <a href="http://otmanix.de/2007/08/13/shell-wars-bash-vs-ksh93/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Auf der <a href="http://www.opensolaris.org/os/project/indiana/" title="Projekt Indiana" target="_blank">Project Indiana</a> Diskussionsliste wird zurzeit ein Krieg ausgetragen: Wer beerbt /usr/bin/sh als Standard-Shell?</p>
<p>Wie bei jeder TV-tauglichen Nachla&#223;geschichte geht es bei der Diskussion ums Erbe nicht immer sachlich zu. Da bei Indiana das Thema Linux eine gro&#223;e Rolle spielt ist f&#252;r Einige unbegreiflich, da&#223; die Bash &#252;berhaupt in Frage gestellt wird durch einen &#8220;Exot&#8221; wie <a href="http://www.opensolaris.org/os/project/ksh93-integration/" title="ksh93 opensolaris" target="_blank">ksh93</a>. Roland Mainz hat hier versucht die Diskussion wieder von Glaubensfragen weg hin  zu Inhalten zu bef&#246;rdern. In <a href="http://mail.opensolaris.org/pipermail/indiana-discuss/2007-August/002079.html" title="bash vs ksh93" target="_blank">seinem Beitrag</a> z&#228;hlt er eine Reihe von Punkten auf, die wohl momentan eher zugunsten von ksh93 sprechen (aus technischer Sicht):</p>
<ul>
<li>ksh93 ist n&#228;her am Posix-Standard als bash im Posix Comformance Mode</li>
<li>f&#252;r die ksh93 wurden bereits 3 Jahre investiert um Fallstricke bei einer Umstellung zu vermeiden, diese Zeit m&#252;&#223;te f&#252;r die bash erst noch investiert werden</li>
<li>ksh93 ist schneller und enth&#228;lt mehr Features (der Punkt Geschwindigkeit darf beim Trend zum massivem Multithreading nicht untersch&#228;tzt werden, bei einem PC/Notebook ist das eher irrelevant)</li>
</ul>
<p>Update &gt;&gt; <a href="http://otmanix.de/2007/08/18/ksh93-ersetzt-ksh-in-opensolaris/">neuer Artikel zu ksh93</a></p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2007/08/13/shell-wars-bash-vs-ksh93/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

