<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sbin on Amit Agarwal Linux Blog</title>
    <link>/tags/sbin/</link>
    <description>Recent content in Sbin on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 27 May 2010 20:26:33 +0000</lastBuildDate>
    
	<atom:link href="/tags/sbin/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Checking the links to your site (from affiliates) using cron and bash script.</title>
      <link>/2010/05/28/checking-links-site-affiliates-cron-bash-script/</link>
      <pubDate>Thu, 27 May 2010 20:26:33 +0000</pubDate>
      
      <guid>/2010/05/28/checking-links-site-affiliates-cron-bash-script/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;If you have some affiliate links and are concerned about their presence then you can setup &amp;lt;a class=&amp;quot;zem_slink freebase/guid/9202a8c04000641f80000000045c9c5b&amp;quot; title=&amp;quot;Cron&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Cron&amp;quot;&amp;gt;cron&lt;/a&gt; to check the links for you regularly. For this you need a very simple script (as below) and a cron entry (example further down).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#!/bin/bash –&lt;br&gt;
#===============================================================================&lt;/p&gt;
&lt;h1 id=&#34;heading&#34;&gt;&lt;/h1&gt;
&lt;p&gt;#          FILE:  checklinks.sh&lt;/p&gt;
&lt;h1 id=&#34;heading-1&#34;&gt;&lt;/h1&gt;
&lt;p&gt;#         USAGE:  ./checklinks.sh&lt;/p&gt;
&lt;h1 id=&#34;heading-2&#34;&gt;&lt;/h1&gt;
&lt;p&gt;#   DESCRIPTION:  Check if the links exists on affiliate sites&lt;/p&gt;
&lt;h1 id=&#34;heading-3&#34;&gt;&lt;/h1&gt;
&lt;p&gt;#       OPTIONS:  —&lt;br&gt;
#  REQUIREMENTS:  —&lt;br&gt;
#          BUGS:  —&lt;br&gt;
#         NOTES:  —&lt;br&gt;
#        AUTHOR:  &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Amit Agarwal&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://amit-agarwal.co.in&amp;quot;&amp;gt;Amit Agarwal&lt;/a&gt; (AKA), &lt;a href=&#34;mailto:amit.agarwal@amit-agarwal.co.in&#34;&gt;amit.agarwal@amit-agarwal.co.in&lt;/a&gt;&lt;br&gt;
#       COMPANY:  Individual&lt;br&gt;
#       VERSION:  1.0&lt;br&gt;
#       CREATED:  04/07/2010 08:19:29 AM IST&lt;br&gt;
#      REVISION:  —&lt;br&gt;
#===============================================================================&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Startup animation and theme for Fedora 12 onwards.</title>
      <link>/2010/05/20/startup-animation-theme-fedora-12-onwards/</link>
      <pubDate>Thu, 20 May 2010 16:43:31 +0000</pubDate>
      
      <guid>/2010/05/20/startup-animation-theme-fedora-12-onwards/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Since the release of &amp;lt;a class=&amp;quot;zem_slink freebase/en/fedora&amp;quot; title=&amp;quot;Fedora&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://fedoraproject.org/&amp;quot;&amp;gt;Fedora&lt;/a&gt; 12, fedora is using plymouth. Plymouth kicks in just after grub and before the Xserver starts.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Description:&lt;/p&gt;
&lt;p&gt;Plymouth provides an attractive graphical &amp;lt;a class=&amp;quot;zem_slink freebase/en/bootsplash&amp;quot; title=&amp;quot;Bootsplash&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Bootsplash&amp;quot;&amp;gt;boot animation&lt;/a&gt; in&lt;br&gt;
place of the &amp;lt;a class=&amp;quot;zem_slink freebase/en/text_messaging&amp;quot; title=&amp;quot;Text messaging&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Text_messaging&amp;quot;&amp;gt;text messages&lt;/a&gt; that normally get shown.  Text&lt;br&gt;
messages are instead redirected to a &amp;lt;a class=&amp;quot;zem_slink freebase/en/data_logger&amp;quot; title=&amp;quot;Data logger&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Data_logger&amp;quot;&amp;gt;log file&lt;/a&gt; for viewing&lt;br&gt;
after boot.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Finding all the executables/binary in Linux rpm based distro.</title>
      <link>/2010/01/04/finding-all-the-executablesbinary-in-linux-rpm-based-distro/</link>
      <pubDate>Sun, 03 Jan 2010 22:40:14 +0000</pubDate>
      
      <guid>/2010/01/04/finding-all-the-executablesbinary-in-linux-rpm-based-distro/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;I have been thinking about this for quite sometime now, how to find all the executables on the linux system. One of the way is to do a &amp;amp;#8221;ls&amp;amp;#8221; on all the directories in the PATH variable. But that will not list the executables that are outside of the PATH. So, I wrote this one liner :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;rpm -qal |agrep &amp;amp;#8221;bin\/&amp;amp;#8221; &amp;gt; all_execs&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This will list all the files in the Linux system in bin or sbin directory and that should be pretty much all the binaries in the system.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
