<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>/Dev/Null on Amit Agarwal Linux Blog</title>
    <link>/tags/dev/null/</link>
    <description>Recent content in /Dev/Null on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 10 Mar 2014 01:41:45 +0000</lastBuildDate>
    
	<atom:link href="/tags/dev/null/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Raspberry Pi automate certain tasks  – script example</title>
      <link>/2014/03/10/raspberry-pi-automate-tasks-script/</link>
      <pubDate>Mon, 10 Mar 2014 01:41:45 +0000</pubDate>
      
      <guid>/2014/03/10/raspberry-pi-automate-tasks-script/</guid>
      <description>&lt;p&gt;Now, if you have followed these :&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://blog.amit-agarwal.co.in/2013/06/07/fetchmail-mails-imap-account/&#34; title=&#34;fetchmail&#34;&gt;fetchmail&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://blog.amit-agarwal.co.in/2013/06/04/ssmtp-configuration-installation-raspberry-pi&#34; title=&#34;ssmtp&#34;&gt;ssmtp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you already have a working system for sending and receiving mail. Now, you can set the mda in the fetmailrc to a script which can do few things for you. The script below will get a page and mail it to you, if you have the subject as “get” and send “&lt;a class=&#34;zem_slink&#34; title=&#34;Wake-on-LAN&#34; href=&#34;http://en.wikipedia.org/wiki/Wake-on-LAN&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;wake on LAN&lt;/a&gt;” to desired PC if you have subject as “wol”. Cool 🙂&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Splitting strings with IFS</title>
      <link>/2010/02/04/splitting-strings-with-ifs/</link>
      <pubDate>Thu, 04 Feb 2010 15:58:43 +0000</pubDate>
      
      <guid>/2010/02/04/splitting-strings-with-ifs/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Today I want to discuss splitting strings into tokens or “words”. I previously discussed how to do this with the &amp;lt;a href=&amp;quot;http://bashcurescancer.com/reading-a-file-line-by-line.html&amp;quot;&amp;gt;IFS variable&lt;/a&gt; and promised a more in depth discussion. Today, I will make the case on WHY to use IFS to split strings as opposed to using a subshell combined with &amp;lt;a class=&amp;quot;zem_slink freebase/en/awk&amp;quot; title=&amp;quot;AWK&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://cm.bell-labs.com/cm/cs/awkbook/index.html&amp;quot;&amp;gt;awk&lt;/a&gt; or cut.&lt;/p&gt;
&lt;p&gt;I wrote this script which reads the /etc/password file line-by-line and prints the &amp;lt;a class=&amp;quot;zem_slink freebase/en/user&amp;quot; title=&amp;quot;User (computing)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/User_%28computing%29&amp;quot;&amp;gt;username&lt;/a&gt; of any user which has a UID greater than 10 and has the shell of /sbin/nologin. Each test function performs this task 10 times to increase the length of the test:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
