<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaemonForums - Guides</title>
		<link>http://www.daemonforums.org//</link>
		<description><![CDATA[All Guides and HOWTO's.]]></description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 12:06:57 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daemonforums.org/images/misc/rss.jpg</url>
			<title>DaemonForums - Guides</title>
			<link>http://www.daemonforums.org//</link>
		</image>
		<item>
			<title>Automatic dual xterm setup for log file monitoring</title>
			<link>http://www.daemonforums.org//showthread.php?t=7912&amp;goto=newpost</link>
			<pubDate>Fri, 24 May 2013 00:51:13 GMT</pubDate>
			<description>While testing a Apache webserver configuration, I became tired of setting up two xterms for monitoring both the /var/log/httpd-access and...</description>
			<content:encoded><![CDATA[<div>While testing a Apache webserver configuration, I became tired of setting up two xterms for monitoring both the <tt style="color: #007a00;">/var/log/httpd-access</tt> and <tt style="color: #007a00;">/var/log/httpd-error.log</tt> files.<br />
<br />
The following simple script does this now for me:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#!/bin/sh<br />
<br />
# Set up two xterms<br />
#&nbsp;  1) tail -f /var/log/httpd-access.log<br />
#&nbsp;  2) tail -f /var/log/http-error.log<br />
<br />
ACCESS='ssh j65nko.org &quot;tail -f /var/log/httpd-access.log&quot;'<br />
ERROR='ssh j65nko.org &quot;tail -f /var/log/httpd-error.log&quot;'<br />
<br />
# geometry (See X(7)&nbsp; 'GEOMETRY SPECIFICATIONS')<br />
# WidthxHeight+X_offset+Y_offset<br />
# Width and Height either in pixels or characters<br />
# X_offset and Y_offset in pixels<br />
<br />
# See xterm(1) for the other options<br />
<br />
xterm -geometry 200x30+0+0&nbsp;  -bg black -fg green -e &quot;${ACCESS}&quot; &amp;<br />
xterm -geometry 200x30+0+500 -bg black -fg red&nbsp;  -e &quot;${ERROR}&quot; &amp;</code><hr />
</div>Please note that according to the <b>xterm</b> manual page. the <b>-e</b> option for specifiying the command needs to be the last one.<br />
<br />
This script has been tested and is being used in Debian as you can see in the trimmed screenshot. ;)<br />
<img src="http://users.silenceisdefeat.net/~j65nko/daemonforums.org/apache-dual-log.png" border="0" alt="" /></div>

]]></content:encoded>
			<category domain="http://www.daemonforums.org//forumdisplay.php?f=31">Guides</category>
			<dc:creator>J65nko</dc:creator>
			<guid isPermaLink="true">http://www.daemonforums.org//showthread.php?t=7912</guid>
		</item>
	</channel>
</rss>
