<?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>Kwatog &#38; Co</title>
	<atom:link href="http://kwatog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Fri, 04 May 2012 07:34:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Suppress Error Message of cp (copy)</title>
		<link>http://kwatog.com/blog/suppress-error-message-of-cp-copy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=suppress-error-message-of-cp-copy</link>
		<comments>http://kwatog.com/blog/suppress-error-message-of-cp-copy/#comments</comments>
		<pubDate>Fri, 04 May 2012 07:34:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[suppress message]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=762</guid>
		<description><![CDATA[There are times when you don&#8217;t need to know if the command you fired threw an error or not. That&#8217;s exactly what I needed in one of the systems I maintain. The copy command should not throw an error if there&#8217;s no file to copy. So instead of writing a number of lines for validations,&#8230;]]></description>
			<content:encoded><![CDATA[<p>There are times when you don&#8217;t need to know if the command you fired threw an error or not. That&#8217;s exactly what I needed in one of the systems I maintain. The copy command should not throw an error if there&#8217;s no file to copy. So instead of writing a number of lines for validations, I just throw the message to /dev/null. Here&#8217;s the code :</p>
<p><code>cp /path/to/file.txt /newpath/ 2> /dev/null</code></p>
<p>Source : existing codes <img src='http://kwatog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/suppress-error-message-of-cp-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force Restart HP TouchPad</title>
		<link>http://kwatog.com/blog/force-restart-hp-touchpad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=force-restart-hp-touchpad</link>
		<comments>http://kwatog.com/blog/force-restart-hp-touchpad/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 15:48:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[cm9]]></category>
		<category><![CDATA[cyanogenmod]]></category>
		<category><![CDATA[hp touchpad]]></category>
		<category><![CDATA[ics]]></category>
		<category><![CDATA[screen unlock]]></category>
		<category><![CDATA[touch screen]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=759</guid>
		<description><![CDATA[Whether you are running Android ICS CM9 on your HP TouchPad or the stock webOS, chances are the touch screen will not work sometimes after the device went to sleep. When you wake up the device, you won&#8217;t be able to unlock it. Even if you press the power button and show the options, you&#8230;]]></description>
			<content:encoded><![CDATA[<p>Whether you are running Android ICS CM9 on your HP TouchPad or the stock webOS, chances are the touch screen will not work sometimes after the device went to sleep. When you wake up the device, you won&#8217;t be able to unlock it. Even if you press the power button and show the options, you still won&#8217;t be able to choose the action that you want to perform.<br />
<span id="more-759"></span><br />
There&#8217;s only two ways to do this, one is to drain the battery and then restart. That would re-activate the touch screen. But what about if you have a full battery? It might take you at least a day to drain the battery. It&#8217;s either the battery drains or it drains your patience. That&#8217;s obviously not a very good option.</p>
<p>The better way is to <strong>press the Power and Home buttons simultaneously and hold it for 30 seconds</strong> until the moboot appears. You can then select the appropriate actions as the touch screen will be re-activated by then. </p>
<p>Source : <a href="http://forum.cyanogenmod.com/topic/41608-touchscreen-not-responding-cant-log-in-cm9-06/">cyanogenmod forum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/force-restart-hp-touchpad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove WordPress Maintenance Mode</title>
		<link>http://kwatog.com/blog/remove-wp-maintenance-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-wp-maintenance-mode</link>
		<comments>http://kwatog.com/blog/remove-wp-maintenance-mode/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 16:22:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=756</guid>
		<description><![CDATA[Sometimes, upgrades fail at some point for some reason. That will leave your site in maintenance mode and unusable. That&#8217;s the &#8220;Briefly Unavailable for Scheduled Maintenance&#8221; that we see while the upgrade is on-going or if it fails. So how do we get out of the maintenance mode? The Fix The fix is as simple&#8230;]]></description>
			<content:encoded><![CDATA[<p>Sometimes, upgrades fail at some point for some reason. That will leave your site in maintenance mode and unusable. That&#8217;s the &#8220;Briefly Unavailable for Scheduled Maintenance&#8221; that we see while the upgrade is on-going or if it fails. So how do we get out of the maintenance mode?<br />
<span id="more-756"></span></p>
<h3>The Fix</h3>
<p>The fix is as simple as deleting the file named .maintenance in the root folder of the site. You can delete the file via your favorite ftp or ssh client. </p>
<h3>The Reason</h3>
<p>During upgrade, WordPress creates a .maintenance file in the root folder. This file is removed after the upgrade is finished. </p>
<p>Source:<br />
WordPress Codex</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/remove-wp-maintenance-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide sqlldr Oracle Password in PS Command</title>
		<link>http://kwatog.com/blog/oracle/hide-sqlldr-oracle-password-in-unix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hide-sqlldr-oracle-password-in-unix</link>
		<comments>http://kwatog.com/blog/oracle/hide-sqlldr-oracle-password-in-unix/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 03:34:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sqlldr]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=734</guid>
		<description><![CDATA[Our internal audit team has raised an issue on some scripts exposing database user, password and tns. You see, all you need is an access to unix shell and run ps command and you&#8217;ll be able to get the user id and password of the database. On the otherhand, there&#8217;s not a lot of people&#8230;]]></description>
			<content:encoded><![CDATA[<p>Our internal audit team has raised an issue on some scripts exposing database user, password and tns. You see, all you need is an access to unix shell and run ps command and you&#8217;ll be able to get the user id and password of the database. On the otherhand, there&#8217;s not a lot of people who have access to the unix shell. But regardless, it&#8217;s still a security vulnerability and must be rectified. Here&#8217;s how.<br />
<span id="more-734"></span><br />
Basically, the steps are as follows.</p>
<ol>
<li>Write the connection string to a temp file. This would be your parameter file. The format is as below.<br />
   <code>userid=scott/tiger@</code><br />
  As it is a parameter file, you can actually put all the other sqlldr parameters in there.
</li>
<li>Call sqlldr with parfile parameter.<br />
Example : <code>sqlldr parfile=paramfile.txt data=mydata.csv control=mytable.ctl log=mydata101.log</code>
</li>
<li>Delete the temp file</li>
</ol>
<p>To be more clear, here&#8217;s the actual code I used.<br />
<code><br />
  umask 0077<br />
  PWDFILE=$(mktemp)<br />
  echo "userid=${SYS_JOB_BSS_ORACLE_UID}/${PASWD}@${SYS_JOB_BSS_ORACLE_SID}" > $PWDFILE<br />
  sqlldr  parfile=$PWDFILE  data=${data_file} control=${APP_CTL_FILE_NAME} log=${data_file}.log rows=100 errors=100<br />
  retCode=`echo $?`<br />
  rm $PWDFILE<br />
 </code> </p>
<p> I would like to explain it a bit but I realized that you won&#8217;t be here if you don&#8217;t understand what it does. If anything, the umask there just sets the permission of the temp file to be created as 077. The rest are pretty much self explanatory.</p>
<p>http://laurentschneider.com/wordpress/2009/05/hide-password-from-ps-output-sql-loader.html</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/oracle/hide-sqlldr-oracle-password-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Turn Off eShop Test Mode</title>
		<link>http://kwatog.com/blog/how-to-turn-off-eshop-test-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-turn-off-eshop-test-mode</link>
		<comments>http://kwatog.com/blog/how-to-turn-off-eshop-test-mode/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 06:27:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[eshop]]></category>
		<category><![CDATA[estore]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[online store]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=747</guid>
		<description><![CDATA[If you are using the latest WordPress version (which you should!!!), you&#8217;ll notice that eShop plugin will be perpetually set to Test Mode and there&#8217;s no way to turn it off. There&#8217;s quite a number of suggestions in the official forum at quirm.net but as it turns out, the option is inadvertently hidden. All you&#8230;]]></description>
			<content:encoded><![CDATA[<p>If you are using the latest WordPress version (which you should!!!), you&#8217;ll notice that eShop plugin will be perpetually set to Test Mode and there&#8217;s no way to turn it off. There&#8217;s quite a number of suggestions in the official forum at quirm.net but as it turns out, the option is inadvertently hidden. All you have to do is to activate the two column mode of the dashboard and you&#8217;ll be able to see the dropdown option.</p>
<p><span id="more-747"></span><br />
To be clear, here&#8217;s the screenshot on how to do it.<br />
<strong>Step 1 : </strong> click on 2 in the Number of Columns Screen options.<br />
<a href="http://kwatog.com/wp-content/uploads/2012/01/eshop_turn_off_test_mode_111.jpg"><img src="http://kwatog.com/wp-content/uploads/2012/01/eshop_turn_off_test_mode_11-300x67.jpg" alt="" title="eshop_turn_off_test_mode_1" width="300" height="67" class="alignnone size-medium wp-image-749" /></a><br />
<strong>Step 2 : </strong> Update the status to Live and click on Save.<br />
<a href="http://kwatog.com/wp-content/uploads/2012/01/eshop_turn_off_test_mode_211.jpg"><img src="http://kwatog.com/wp-content/uploads/2012/01/eshop_turn_off_test_mode_21-300x160.jpg" alt="" title="eshop_turn_off_test_mode_2" width="300" height="160" class="alignnone size-medium wp-image-748" /></a></p>
<p>For those looking for it, I know how you feel. I just felt too stupid to not thinking about it. Admittedly, it&#8217;s probably one of the many plugins affected by the latest WordPress enhancements. I bet once rich updated the plugin to conform with the new standard, then it won&#8217;t be a problem anymore. </p>
<p>Source:</p>
<p>http://quirm.net/forum/topic.php?id=4716</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/how-to-turn-off-eshop-test-mode/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Agoda Hotel Rate Search Plugin for WordPress</title>
		<link>http://kwatog.com/wp-plugins/agoda-hotel-rate-search-plugin-for-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=agoda-hotel-rate-search-plugin-for-wordpress</link>
		<comments>http://kwatog.com/wp-plugins/agoda-hotel-rate-search-plugin-for-wordpress/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 07:44:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=736</guid>
		<description><![CDATA[Here&#8217;s my first plugin for 2012. It&#8217;s a plugin to show the agoda seach widget inside your post. If more applicable for travel websites who are also Agoda Affiliate Partner. upload agoda_hrs.php to plugins folder activate the plugin set client id, country id and city id in the settings menu add [agoda_hrs] shortcode on your&#8230;]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my first plugin for 2012. It&#8217;s a plugin to show the agoda seach widget inside your post. If more applicable for travel websites who are also Agoda Affiliate Partner.</p>
<ol>
<li>upload agoda_hrs.php to plugins folder</li>
<li>activate the plugin</li>
<li>set client id, country id and city id in the settings menu</li>
<li>add [agoda_hrs] shortcode on your post.</li>
</ol>
<p><span id="more-736"></span><br />
In case you don&#8217;t know how to get the country code, city id and hotel id, here&#8217;s the quick tutorial. Actually, more of a screenshot.<br />
<img src="http://kwatog.com/wp-content/uploads/2012/01/agoda_get_hotel_codes_step111.jpg" alt="" title="agoda_get_hotel_codes_step1" class="alignnone size-full wp-image-740" /><br />
<img src="http://kwatog.com/wp-content/uploads/2012/01/agoda_get_hotel_codes_step211.jpg" alt="" title="agoda_get_hotel_codes_step2" class="alignnone size-full wp-image-739" /></p>
<p><a href='http://kwatog.com/wp-content/uploads/2012/01/agoda_hrs1.zip'>Download Here</a></p>
<p>**** NOTE ************<br />
<del datetime="2012-01-12T07:53:30+00:00">I&#8217;m planning to have this plugin submitted to WordPress plugin repository. If and when it is approved, then all further updates and downloads will be moved there.</del> The plugin is denied. Here&#8217;s the reason.<br />
<code>Hi, Sorry but single affiliate searches like this are no longer accepted into the directory</code><br />
Anyway, I&#8217;ll just serve it on this site. </p>
<p>****** I&#8217;ll be updating this post continually. Please bear with me if I can&#8217;t write all the details. ******</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/wp-plugins/agoda-hotel-rate-search-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>comfort Host Panel Down</title>
		<link>http://kwatog.com/blog/comfort-host-panel-down/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=comfort-host-panel-down</link>
		<comments>http://kwatog.com/blog/comfort-host-panel-down/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 07:33:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=731</guid>
		<description><![CDATA[I had a major database problem in one of my sites the other day (more on that later). Though I was able to rectify that with my backup, I wanted to restore my VPS from it&#8217;s daily backup using the control panel of ComfortHost. Unfortunately, I cannot access the main site and neither the panel&#8230;]]></description>
			<content:encoded><![CDATA[<p>I had a major database problem in one of my sites the other day (more on that later). Though I was able to rectify that with my backup, I wanted to restore my VPS from it&#8217;s daily backup using the control panel of ComfortHost. Unfortunately, I cannot access the main site and neither the panel site. That&#8217;s odd since my VPS is still up. Since the control panel is down, you cannot raise any ticket.<br />
<span id="more-731"></span><br />
I tried again today but the site is still down. I tried to look for complaints in webhosting talk and surprisingly, there&#8217;s not a lot of complaints. I was able to find one thread with reply from Quell. Apparently, their main website is hosted in a third-party company so that in case their DC is down, the customers will still be able to contact them. unfortunately, it is their third-party host that is having some problems now. Anyway, here&#8217;s the explanation of Quell in webhostingtalk.</p>
<p><img src="http://kwatog.com/wp-content/uploads/2011/12/comfort_host_panel_down11.jpg" alt="" title="comfort_host_panel_down" width="622" height="433" class="alignnone size-full wp-image-732" /><br />
I want to reiterate that my <strong>server is up</strong>. Only the control panel is down. Not a deal breaker for me but I hope they manage to resolve their problem with their host. </p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/comfort-host-panel-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Cancel Dropbox Upload</title>
		<link>http://kwatog.com/blog/how-to-cancel-dropbox-upload/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-cancel-dropbox-upload</link>
		<comments>http://kwatog.com/blog/how-to-cancel-dropbox-upload/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 03:28:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[hspa+]]></category>
		<category><![CDATA[samsung galaxy sii]]></category>
		<category><![CDATA[singapore]]></category>
		<category><![CDATA[starhub]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=727</guid>
		<description><![CDATA[There are times when you inadvertently upload large files from your phone to your cloud storage like Dropbox. And when you&#8217;re on an area with weak 3G/HSPA+ coverage, it will take forever to upload the file. The other problem is&#8230; it will drain your battery. That&#8217;s exactly what happened to me last night. What&#8217;s more&#8230;]]></description>
			<content:encoded><![CDATA[<p>There are times when you inadvertently upload large files from your phone to your cloud storage like Dropbox. And when you&#8217;re on an area with weak 3G/HSPA+ coverage, it will take forever to upload the file. The other problem is&#8230; it will drain your battery. That&#8217;s exactly what happened to me last night. What&#8217;s more annoying is that I can&#8217;t cancel the Dropbox upload. At least, I don&#8217;t know how.<br />
<span id="more-727"></span><br />
Apparently, it&#8217;s simple via the little known function via the Settings.You can cancel your uploads via </p>
<ol>
<li>Settings&#8211;>Retry failed uploads</li>
<li>Settings&#8211;>Clear uploads</li>
</ol>
<p>Here&#8217;s the screenshot.<br />
<img src="http://dl.dropbox.com/u/14765699/dropbox_cancel_upload.jpeg"/></p>
<p>I&#8217;m a big fan of Dropbox and that&#8217;s why I have it in all of my devices. I stopped bringing my USB flash disk after I started using it. It&#8217;s just so simple and here in <a href="http://kwatog.wordpress.com">Singapore</a> where there&#8217;s internet everywhere, it&#8217;s even more useful. I have it on my <a href="http://kwatog.wordpress.com/category/samsung-galaxy-sii/">Samsung Galaxy SII</a>. Instead of using a cable, I just upload the file via Dropbox and access the same file on my desktop. </p>
<p>I have one suggestion to Dropbox, though. If they can put that menu somewhere else other than the Settings, it would be better. It&#8217;s not very intuitive to dig into the Settings to do it. Besides, settings is where you set your configurations. Cancelling an upload is an action, not a setting. But still, I love Dropbox.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/how-to-cancel-dropbox-upload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get The First File in Unix</title>
		<link>http://kwatog.com/blog/how-to-get-the-first-file-in-unix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-the-first-file-in-unix</link>
		<comments>http://kwatog.com/blog/how-to-get-the-first-file-in-unix/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 07:20:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=721</guid>
		<description><![CDATA[In case you are looking files using ls or find command and only want to get the first file found, the command would be like. ls -l /any/path/filename*&#124;sed -e 's///,/g'&#124;awk -F "," '{print $NF}'&#124;head -1 Of course, you can also use it in find command. find /any/path/ -name "filename*" -type f&#124;sed -e 's///,/g'&#124;awk -F ","&#8230;]]></description>
			<content:encoded><![CDATA[<p>In case you are looking files using ls or find command and only want to get the first file found, the command would be like.<br />
<code><br />
ls -l /any/path/filename*|sed -e 's///,/g'|awk -F "," '{print $NF}'|head -1<br />
</code></p>
<p>Of course, you can also use it in find command.</p>
<p><code><br />
find /any/path/ -name "filename*" -type f|sed -e 's///,/g'|awk -F "," '{print $NF}'|head -1<br />
</code><br />
<span id="more-721"></span><br />
The key here is the head -1 command which limits the output to just one line. I came about this when I was investigating a problem in one of the programs that I maintain. The original code is as below.<br />
<code><br />
inputFile=`ls -l /any/path/filename*|sed -e 's///,/g'|awk -F "," '{print $NF}'`<br />
</code><br />
It looks correct, runs perfectly during testing and there seems to be no problem. However, if there&#8217;s more than one file, the variable inputFile will have multiple-line data. When used in a command, the problem starts. Basically, it was only expecting one file. When more than one file is push, inputFile should just get the first file. That&#8217;s why pipe-in another command which is the head -1. </p>
<p>In case you need the last file, then just change the head -1  to tail -1. </p>
<p>Bugs like this is hard to find. When we test or investigate, we usually use just one file to run through the whole program. And that&#8217;s what happened with this issue was raised to me. The previous developer is already pulling his hair because in order to get to that problematic line, he had to go trace it though a deep layer of shell scripts. </p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/how-to-get-the-first-file-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Display Seconds in Unix File Timestamp</title>
		<link>http://kwatog.com/blog/how-to-display-seconds-in-unix-file-timestamp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-display-seconds-in-unix-file-timestamp</link>
		<comments>http://kwatog.com/blog/how-to-display-seconds-in-unix-file-timestamp/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 06:23:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[NGINX]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=717</guid>
		<description><![CDATA[Apparently, there&#8217;s no native shell command to show the seconds portion of a unix file timestamp. The nearest to this functionality is stat. However, it&#8217;s not always available in unix systems. I&#8217;m using HP-UX and it&#8217;s not installed on our server. Instead, I needed to use a one-line perl program shown below. perl -e .foreach(@ARGV){$t&#8230;]]></description>
			<content:encoded><![CDATA[<p>Apparently, there&#8217;s no native shell command to show the seconds portion of a unix file timestamp. The nearest to this functionality is stat. However, it&#8217;s not always available in unix systems. I&#8217;m using HP-UX and it&#8217;s not installed on our server.<br />
<!-- more --><br />
Instead, I needed to use a one-line perl program shown below.<br />
<code><br />
perl -e .foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf(.%-20s %sn.,$_,$t);}. filename.txt<br />
</code></p>
<p>My perl knowledge is limited to its name. I have nothing beyond that. That&#8217;s my way of saying &#8216;I don&#8217;t know what it is.&#8217; But it works!</p>
<p><a href="http://www.amazon.com/gp/product/B001ADL1SG/ref=as_li_ss_il?ie=UTF8&#038;tag=blissweddip0d-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B001ADL1SG"><img border="0" src="http://dl.dropbox.com/u/14765699/crane_drop_shape_cool_mist_humidifier.jpg" ></a><img src="http://www.assoc-amazon.com/e/ir?t=blissweddip0d-20&#038;l=as2&#038;o=1&#038;a=B001ADL1SG" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
Source:</p>
<p>http://www.unix.com/shell-programming-scripting/41325-command-get-file-timestamp-including-seconds-aix-5-3-a.html</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/how-to-display-seconds-in-unix-file-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

