<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Irwan's Blog &#187; Shell Programming</title>
	<atom:link href="http://hnawri.wordpress.com/category/technology/shell-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://hnawri.wordpress.com</link>
	<description>Just learn to write :)</description>
	<lastBuildDate>Sat, 07 Mar 2009 10:00:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='hnawri.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6cec0e42a90d8d8d7734b8948a2e8803?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Irwan's Blog &#187; Shell Programming</title>
		<link>http://hnawri.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hnawri.wordpress.com/osd.xml" title="Irwan&#8217;s Blog" />
		<item>
		<title>Automatic telnet on shell programming</title>
		<link>http://hnawri.wordpress.com/2008/02/15/automatic-telnet-on-shell-programming/</link>
		<comments>http://hnawri.wordpress.com/2008/02/15/automatic-telnet-on-shell-programming/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 15:18:21 +0000</pubDate>
		<dc:creator>hnawri</dc:creator>
				<category><![CDATA[Shell Programming]]></category>

		<guid isPermaLink="false">http://hnawri.wordpress.com/?p=31</guid>
		<description><![CDATA[Sometimes you want to execute script on your another server automatically without rsh. What you usually do is telnet to that server and execute the script. But how to make it automatic ?
You can use the tricky method bellow
Asume your server target is 198.10.10.2 and you want to execute
/home/hnawri/alarm.sh
(sleep 1
echo username
sleep 1
echo password
sleep 1
echo &#8220;/home/hnawri/alarm.sh&#8221;
sleep [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hnawri.wordpress.com&blog=1042934&post=31&subd=hnawri&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://hnawri.wordpress.com/2008/02/15/automatic-telnet-on-shell-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18be2f9d22dd4d620e0e8e75ce16e967?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hnawri</media:title>
		</media:content>
	</item>
		<item>
		<title>FTP from shell</title>
		<link>http://hnawri.wordpress.com/2008/01/27/ftp-from-shell/</link>
		<comments>http://hnawri.wordpress.com/2008/01/27/ftp-from-shell/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 08:31:19 +0000</pubDate>
		<dc:creator>hnawri</dc:creator>
				<category><![CDATA[Shell Programming]]></category>

		<guid isPermaLink="false">http://hnawri.wordpress.com/?p=27</guid>
		<description><![CDATA[Maybe it can help you to do automatic ftp from your shell script
ftp -in IP_ADDRESS &#60;&#60; EOF
user username password
prompt off
cd $destination_dir
lcd $local_dir
put $files
bye
EOF
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hnawri.wordpress.com&blog=1042934&post=27&subd=hnawri&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://hnawri.wordpress.com/2008/01/27/ftp-from-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18be2f9d22dd4d620e0e8e75ce16e967?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hnawri</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Oracle Query Result from Shell</title>
		<link>http://hnawri.wordpress.com/2008/01/27/get-oracle-query-result-from-shell/</link>
		<comments>http://hnawri.wordpress.com/2008/01/27/get-oracle-query-result-from-shell/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 08:03:29 +0000</pubDate>
		<dc:creator>hnawri</dc:creator>
				<category><![CDATA[Shell Programming]]></category>

		<guid isPermaLink="false">http://hnawri.wordpress.com/2008/01/27/get-oracle-query-result-from-shell/</guid>
		<description><![CDATA[If you want to get data from Oracle using shell, you can use this script

$SQLPLUS -s $ORACLE_USER/$ORACLE_PASSWD@$ORACLE_SID &#60;&#60; EOF &#62;&#62; $FILE
@$SQL_SCRIPT
exit
EOF
In order to avoid feedback and title heading, you may add

set heading off
set feedback off
on your $SQL_SCRIPT
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hnawri.wordpress.com&blog=1042934&post=26&subd=hnawri&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://hnawri.wordpress.com/2008/01/27/get-oracle-query-result-from-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18be2f9d22dd4d620e0e8e75ce16e967?s=96&#38;d=identicon" medium="image">
			<media:title type="html">hnawri</media:title>
		</media:content>
	</item>
	</channel>
</rss>