119 lines
4.4 KiB
HTML
119 lines
4.4 KiB
HTML
<!--startcut ======================================================= -->
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<html><head>
|
|
<META NAME="generator" CONTENT="lgazmail v1.1D.l">
|
|
<TITLE>The Answer Guy 34:
|
|
Re Script
|
|
</TITLE>
|
|
<!-- ORIGINAL SUBJECT:
|
|
Re Script
|
|
JTD SUBTITLE:
|
|
|
|
-->
|
|
</head>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
|
|
ALINK="#FF0000">
|
|
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
|
|
</H4>
|
|
<P> <hr> <P>
|
|
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
|
|
<H1 align="center"><A NAME="answer">
|
|
<img src="../../gx/dennis/qbubble.gif" alt="" border="0" align="middle">
|
|
<a href="../index.html">The Answer Guy</a>
|
|
<img src="../../gx/dennis/bbubble.gif" alt="" border="0" align="middle">
|
|
</A></H1>
|
|
<BR>
|
|
<H4 align="center">By James T. Dennis,
|
|
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a>
|
|
<BR>Starshine Technical Services, <A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
|
|
</H4>
|
|
<p><hr><p>
|
|
<!--endcut ========================================================= -->
|
|
<H3><img src="../../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
|
|
align="left" border="0">Re Script </H3>
|
|
<p><strong>From Joe Wronkowski on 23 Oct 1998 </strong></p>
|
|
<!-- begin body -->
|
|
|
|
<p><strong>Hi Jim,
|
|
<br>I was just wondering if there was an easy way to grab the
|
|
time/date Oct 6 21:57:33 from the same line the
|
|
<tt>153.37.55.**</tt> was taken from.
|
|
If you are busy I understand.
|
|
</strong></p>
|
|
|
|
<p><strong>Thanks
|
|
<br>Joe Wronkowski
|
|
</strong></p>
|
|
|
|
<blockquote><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)" height="28" width="50" align="bottom">The following <tt>awk</tt> expression will
|
|
isolate the date and time from these example lines:
|
|
</blockquote>
|
|
|
|
<blockquote><blockquote><code>date="$1 $2"
|
|
<br>time="$3"
|
|
</code></blockquote></blockquote>
|
|
|
|
<p><strong><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)" height="28" width="50" align=""bottom">sample of log file:</strong><p>
|
|
<pre>
|
|
Oct 6 21:50:19 rogueserver in.telnetd[197]: connect from 208.224.174.21
|
|
Oct 6 21:50:24 rogueserver telnetd[197]: ttloop: peer died: Success
|
|
Oct 6 21:55:29 rogueserver in.telnetd[211]: connect from 208.224.174.21
|
|
Oct 6 21:55:35 rogueserver telnetd[211]: ttloop: peer died: Success
|
|
Oct 6 21:57:33 rogueserver in.pop3d[215]: connect from 153.37.55.65
|
|
Oct 6 21:57:34 rogueserver in.pop3d[215]: Servicing request for rogue
|
|
</pre>
|
|
<!-- end body -->
|
|
|
|
<!--startcut ======================================================= -->
|
|
<P> <hr> <P>
|
|
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
|
|
>Copyright ©</a> 1998, James T. Dennis <BR>
|
|
Published in <I>Linux Gazette</I> Issue 34 November 1998</H5>
|
|
<P> <hr> <P>
|
|
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
|
|
<P align="center">
|
|
<table width="98%"><tr valign="center" align="center">
|
|
<td rowspan="3"><A HREF="../lg_answer34.html"><IMG
|
|
SRC="../../gx/dennis/answernew.gif"
|
|
ALT="[ Answer Guy Index ]"></A></td>
|
|
<td><A HREF="./apache.html">apache</a>
|
|
<td><A HREF="./current.html">current</a>
|
|
<td><A HREF="./digi.html">digi</a>
|
|
<td><A HREF="./ether.html">ether</a>
|
|
<td><A HREF="./goodtimes.html">goodtimes</a>
|
|
<td><A HREF="./intlX.html">intlX</a>
|
|
<td><A HREF="./largedisk.html">largedisk</a>
|
|
</tr><tr valign="center" align="center">
|
|
<td><A HREF="./maybe.html">maybe</a>
|
|
<td><A HREF="./numlock.html">numlock</a>
|
|
<td><A HREF="./quota.html">quota</a>
|
|
<td><A HREF="./recovery.html">recovery</a>
|
|
<td><A HREF="./script.html">script</a>
|
|
<td><A HREF="./serial.html">serial</a>
|
|
<td><A HREF="./session.html">session</a>
|
|
</tr><tr valign="center" align="center">
|
|
<td><A HREF="./sound.html">sound</a>
|
|
<td><A HREF="./tape.html">tape</a>
|
|
<td><A HREF="./testsuite.html">testsuite</a>
|
|
<td><A HREF="./w95ie.html">w95ie</a>
|
|
<td><A HREF="./w95ras.html">w95ras</a>
|
|
<td><A HREF="./w95virus.html">w95virus</a>
|
|
<td><A HREF="./xdm.html">xdm</a>
|
|
</tr></table>
|
|
</P>
|
|
<P> <hr> <P>
|
|
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
|
|
<A HREF="../index.html"><IMG SRC="../../gx/indexnew.gif"
|
|
ALT="[ Table Of Contents ]"></A>
|
|
<A HREF="../../index.html"><IMG SRC="../../gx/homenew.gif"
|
|
ALT="[ Front Page ]"></A>
|
|
<A HREF="../lg_bytes34.html"><IMG SRC="../../gx/back2.gif"
|
|
ALT="[ Previous Section ]"></A>
|
|
<A HREF="../izquierdo.html"><IMG SRC="../../gx/fwd.gif"
|
|
ALT="[ Next Section ]"></A>
|
|
</body>
|
|
</html>
|
|
<!--endcut ========================================================= -->
|
|
|