<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Bash Command Logger with Curl Support</title>
	<atom:link href="http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/</link>
	<description>A blog about linux, programming and more</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:59:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: kvs</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-821</link>
		<dc:creator>kvs</dc:creator>
		<pubDate>Fri, 06 May 2011 00:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-821</guid>
		<description>Patch for 3.2.48 (basically same thing) &lt;a href=&quot;http://www.securityhacking.info/2011/05/bash-3-2-48-log-commands-to-syslog-with-paranoia-patch/&quot; rel=&quot;nofollow&quot;&gt; http://www.securityhacking.info/2011/05/bash-3-2-48-log-commands-to-syslog-with-paranoia-patch/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Patch for 3.2.48 (basically same thing) <a href="http://www.securityhacking.info/2011/05/bash-3-2-48-log-commands-to-syslog-with-paranoia-patch/" rel="nofollow"> </a><a href="http://www.securityhacking.info/2011/05/bash-3-2-48-log-commands-to-syslog-with-paranoia-patch/" rel="nofollow">http://www.securityhacking.info/2011/05/bash-3-2-48-log-commands-to-syslog-with-paranoia-patch/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linux guru</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-820</link>
		<dc:creator>linux guru</dc:creator>
		<pubDate>Thu, 05 May 2011 18:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-820</guid>
		<description>You cant use bash-3.2.48.tar.gz. Use bash-3.2.tar.gz instead, it will happily take the patch, however I had to force define PARANOIA in first patch:

+if test $opt_paranoia = yes; then
+AC_DEFINE(PARANOIA)
+fi
 if test $opt_alias = yes; then
 AC_DEFINE(ALIAS)
 fi


to



+AC_DEFINE(PARANOIA)
 if test $opt_alias = yes; then
 AC_DEFINE(ALIAS)
 fi</description>
		<content:encoded><![CDATA[<p>You cant use bash-3.2.48.tar.gz. Use bash-3.2.tar.gz instead, it will happily take the patch, however I had to force define PARANOIA in first patch:</p>
<p>+if test $opt_paranoia = yes; then<br />
+AC_DEFINE(PARANOIA)<br />
+fi<br />
 if test $opt_alias = yes; then<br />
 AC_DEFINE(ALIAS)<br />
 fi</p>
<p>to</p>
<p>+AC_DEFINE(PARANOIA)<br />
 if test $opt_alias = yes; then<br />
 AC_DEFINE(ALIAS)<br />
 fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aiwei</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-757</link>
		<dc:creator>aiwei</dc:creator>
		<pubDate>Thu, 24 Mar 2011 08:19:11 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-757</guid>
		<description>Thanks for your tips!
but I want you help!  I&#039;m sorry my english is poor.

My server is install CentOS 5.5 or RHEL 5.5,  so the bash
default version is  3.2.25(1)
I don&#039;t want to change bash version to 4.1 ，maybe some wrong with my applications
So i download the last version bash 3.2  
http://ftp.gnu.org/gnu/bash/bash-3.2.48.tar.gz

I  just only want  to log &quot;Bash Command &quot;  at  syslog,  but not  need it work with Curl Support .
 ,I follow your Tips,but can&#039;t work.
can you tell me the detail ----I just need syslog but not curl support? don&#039;t need use /etc/bash.conf
-------------------------
server A
vi  /etc/syslog.conf 
local6.*                  @172.20.2.16
-----------------------
logserver B  ( 172.20.2.16 )
# vi /etc/syslog.conf 
local6.*                  /var/log/all.log
# vi /etc/sysconfig/syslog
SYSLOGD_OPTIONS=&quot;-m 0 -r&quot; 

Thank you very much!</description>
		<content:encoded><![CDATA[<p>Thanks for your tips!<br />
but I want you help!  I&#8217;m sorry my english is poor.</p>
<p>My server is install CentOS 5.5 or RHEL 5.5,  so the bash<br />
default version is  3.2.25(1)<br />
I don&#8217;t want to change bash version to 4.1 ，maybe some wrong with my applications<br />
So i download the last version bash 3.2<br />
<a href="http://ftp.gnu.org/gnu/bash/bash-3.2.48.tar.gz" rel="nofollow">http://ftp.gnu.org/gnu/bash/bash-3.2.48.tar.gz</a></p>
<p>I  just only want  to log &#8220;Bash Command &#8221;  at  syslog,  but not  need it work with Curl Support .<br />
 ,I follow your Tips,but can&#8217;t work.<br />
can you tell me the detail &#8212;-I just need syslog but not curl support? don&#8217;t need use /etc/bash.conf<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
server A<br />
vi  /etc/syslog.conf<br />
local6.*                  @172.20.2.16<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
logserver B  ( 172.20.2.16 )<br />
# vi /etc/syslog.conf<br />
local6.*                  /var/log/all.log<br />
# vi /etc/sysconfig/syslog<br />
SYSLOGD_OPTIONS=&#8221;-m 0 -r&#8221; </p>
<p>Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-500</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 23 Sep 2010 18:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-500</guid>
		<description>It looks like FreeBSD switched to utmpx from utmp which is screwing up the compile. I don&#039;t have access to a FreeBSD at this time to try to debug the change</description>
		<content:encoded><![CDATA[<p>It looks like FreeBSD switched to utmpx from utmp which is screwing up the compile. I don&#8217;t have access to a FreeBSD at this time to try to debug the change</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-497</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Thu, 23 Sep 2010 09:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-497</guid>
		<description>Thanks for the tip but i get this error when running make under FreeBSD8.1 if you could help id appreciate it, if not thanks for your time.

gcc  -DPROGRAM=&#039;&quot;bash&quot;&#039; -DCONF_HOSTTYPE=&#039;&quot;x86_64&quot;&#039; -DCONF_OSTYPE=&#039;&quot;freebsd81&quot;&#039; -DCONF_MACHTYPE=&#039;&quot;x86_64-unknown-freebsd81&quot;&#039; -DCONF_VENDOR=&#039;&quot;unknown&quot;&#039; -DLOCALEDIR=&#039;&quot;/usr/local/share/locale&quot;&#039; -DPACKAGE=&#039;&quot;bash&quot;&#039; -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -I/usr/local/include -g -O2 -c bashhist.c
bashhist.c: In function &#039;paranoia_log_through_utmp&#039;:
bashhist.c:930: warning: assignment makes pointer from integer without a cast
bashhist.c:940: error: &#039;struct utmp&#039; has no member named &#039;ut_user&#039;
*** Error code 1

Stop in /usr/home/sbp/bash-4.1.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip but i get this error when running make under FreeBSD8.1 if you could help id appreciate it, if not thanks for your time.</p>
<p>gcc  -DPROGRAM=&#8217;&#8221;bash&#8221;&#8216; -DCONF_HOSTTYPE=&#8217;&#8221;x86_64&#8243;&#8216; -DCONF_OSTYPE=&#8217;&#8221;freebsd81&#8243;&#8216; -DCONF_MACHTYPE=&#8217;&#8221;x86_64-unknown-freebsd81&#8243;&#8216; -DCONF_VENDOR=&#8217;&#8221;unknown&#8221;&#8216; -DLOCALEDIR=&#8217;&#8221;/usr/local/share/locale&#8221;&#8216; -DPACKAGE=&#8217;&#8221;bash&#8221;&#8216; -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -I/usr/local/include -g -O2 -c bashhist.c<br />
bashhist.c: In function &#8216;paranoia_log_through_utmp&#8217;:<br />
bashhist.c:930: warning: assignment makes pointer from integer without a cast<br />
bashhist.c:940: error: &#8216;struct utmp&#8217; has no member named &#8216;ut_user&#8217;<br />
*** Error code 1</p>
<p>Stop in /usr/home/sbp/bash-4.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-496</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 23 Sep 2010 03:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-496</guid>
		<description>Both those patches applied fine to the vanalla 4.1 source tree but ./configure wouldn&#039;t work. Here is what I had to do

Run ./configure alone and the first few lines of output it spits out by build and host type

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu

Then I did this

autoconf
./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --enable-paranoia
make
make install

Then it worked</description>
		<content:encoded><![CDATA[<p>Both those patches applied fine to the vanalla 4.1 source tree but ./configure wouldn&#8217;t work. Here is what I had to do</p>
<p>Run ./configure alone and the first few lines of output it spits out by build and host type</p>
<p>checking build system type&#8230; x86_64-unknown-linux-gnu<br />
checking host system type&#8230; x86_64-unknown-linux-gnu</p>
<p>Then I did this</p>
<p>autoconf<br />
./configure &#8211;host=x86_64-unknown-linux-gnu &#8211;build=x86_64-unknown-linux-gnu &#8211;enable-paranoia<br />
make<br />
make install</p>
<p>Then it worked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-495</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Wed, 22 Sep 2010 23:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-495</guid>
		<description>would be really cool if you could update this to bash-4.1</description>
		<content:encoded><![CDATA[<p>would be really cool if you could update this to bash-4.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-411</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 12 May 2010 16:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-411</guid>
		<description>thanks.. I&#039;ll look into that option</description>
		<content:encoded><![CDATA[<p>thanks.. I&#8217;ll look into that option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cody Robertson</title>
		<link>http://zcentric.com/2010/03/09/bash-command-logger-with-curl-support/comment-page-1/#comment-403</link>
		<dc:creator>Cody Robertson</dc:creator>
		<pubDate>Sun, 09 May 2010 22:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://zcentric.com/?p=4#comment-403</guid>
		<description>It would be much more powerful if you thought about implementing something similar for CouchDB (or its alternatives). It has a RESTful API and will allow you quite a bit of flexibility with its map reduce functionality (especially when using it with numerous servers).

Neat idea though :)</description>
		<content:encoded><![CDATA[<p>It would be much more powerful if you thought about implementing something similar for CouchDB (or its alternatives). It has a RESTful API and will allow you quite a bit of flexibility with its map reduce functionality (especially when using it with numerous servers).</p>
<p>Neat idea though <img src='http://zcentric.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

