<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://whijo.net" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>bash</title>
 <link>http://whijo.net/taxonomy/term/25/feed</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Lazyweb, Lazyweb: Commandline hinting</title>
 <link>http://whijo.net/blog/brad/2007/06/19/lazyweb-lazyweb-commandline-hinting.html</link>
 <description>The geeks out there who use commandline on a popular set of operating systems (linux) may or may not know about bash_completion. bash_completion is awesome, it adds more tabbing to your typing. You type  ssh &amp;lt;tab&amp;gt; &amp;lt;tab&amp;gt;  and it starts suggesting what you might want to type, like hosts, or switches. It autocompletes when it can, and it makes life very easy. To the non-geek this translates into very efficient commandlines, and that is why geeks dig the commandline. I always thought bash_completion was awesome, but lacking a critical feature. bash_completion doesn&#039;t work for programs it doesn&#039;t know about. This is logical, because, how can it. So I propose, oh lazyweb, that we agree upon a switch like --hint for all commandline apps which spits out it&#039;s help in a form that an add on like bash completion can easily use, so even if bash_completion doesn&#039;t know about it, it can find out about it as you tab. It would allow richer things like this: 
&lt;code&gt;&lt;pre&gt;
yourhost$ ls -l &amp;lt;tab&amp;gt; &amp;lt;tab&amp;gt; 
       -l     use a long listing format
       Other Suggestions: ...
&lt;/pre&gt;&lt;/code&gt;

It would mean that everyone@opensource would need to figure out and agree upon a standard, but it would mean implementing hinting under different shells would be trivial to implement, and the problem gets farmed out to everyone who maintains their own packages, so hopefully we would see wider support.

It is just a rad geek dream, really. A lot like my tab completion IRC/IM/Blogging dream (the one where you hit a &amp;lt;tab&amp;gt; &amp;lt;tab&amp;gt; &amp;lt;tab&amp;gt; &amp;lt;tab&amp;gt; and it tells your friend what you want to say, without having to type it all out).</description>
 <comments>http://whijo.net/blog/brad/2007/06/19/lazyweb-lazyweb-commandline-hinting.html#comments</comments>
 <category domain="http://whijo.net/geek-tags/bash">bash</category>
 <category domain="http://whijo.net/tags/geek">geek</category>
 <category domain="http://whijo.net/geek-tags/lazyweb">lazyweb</category>
 <category domain="http://whijo.net/geek-tags/shell">shell</category>
 <category domain="http://whijo.net/geek-tags/wishlist">wishlist</category>
 <pubDate>Tue, 19 Jun 2007 11:53:13 +0200</pubDate>
 <dc:creator>brad</dc:creator>
 <guid isPermaLink="false">96 at http://whijo.net</guid>
</item>
<item>
 <title>D-arb 1; Active Directory 0</title>
 <link>http://whijo.net/blog/brad/2006/09/27/d-arb-1-active-directory-0.html</link>
 <description>&lt;p&gt;I work in a department which runs it&#039;s network using a windows domain controller (active directory). Now, as it stands, Samba can operate as a drop in ADS for a lot of cases, so it&#039;s ADS is pretty good. The major limitation to Samba&#039;s support is lack of DFS (Dynamic file share), the Microsoft equvalent of network symlinks. But that is not what this article is about.&lt;/p&gt;

&lt;p&gt; Every few weeks my domain password expires. If you remember to change your password before it expires, then no problem, you can use smb, or net. Unfortunately I usually forget (since I use samba so infrequently), and then it means a trip to my nearest domain computer, to change my password, and back. I decided to take action. I dropped a sh script in /etc/cron.daily/ called &#039;rucsict&#039;. The magic is simple:
&lt;pre&gt;
#!/bin/sh
/usr/bin/net -U Username%Password -S the.domain.controller RAP PASSWORD Username Password Password

&lt;/pre&gt;
So every day it refreshes my password. It could easily generate a new password every two weeks or something, but I am more worried about saving myself a trip every few weeks to change my password. So, I win.&lt;/p&gt;</description>
 <comments>http://whijo.net/blog/brad/2006/09/27/d-arb-1-active-directory-0.html#comments</comments>
 <category domain="http://whijo.net/geek-tags/active-directory">active directory</category>
 <category domain="http://whijo.net/geek-tags/bash">bash</category>
 <category domain="http://whijo.net/geek-tags/dfs">dfs</category>
 <category domain="http://whijo.net/tags/geek">geek</category>
 <category domain="http://whijo.net/geek-tags/linux">linux</category>
 <pubDate>Wed, 27 Sep 2006 16:15:59 +0200</pubDate>
 <dc:creator>brad</dc:creator>
 <guid isPermaLink="false">399 at http://whijo.net</guid>
</item>
</channel>
</rss>
