[102176] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Command line help

daemon@ATHENA.MIT.EDU (Fred Smith)
Tue Dec 1 18:54:59 1998

Date: Tue, 1 Dec 1998 12:47:41 -0500
From: Fred Smith <fredex@fcshome.stoneham.ma.us>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Mail-Followup-To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
In-Reply-To: <D1DC9C040E12D1118B680060081459491F9594@CAJUN-EXC>; from Mike A. Lewis, CNE on Tue, Dec 01, 1998 at 02:50:27AM -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Tue, Dec 01, 1998 at 02:50:27AM -0800, Mike A. Lewis, CNE wrote:
> 
> I'm trying to setup a cron job to keep tabs on the mailq on one of my
> machines.  What I'm wanting is something along the lines of:
> 
> #date ; mailq | head -1 >> /filename
> 
> problem is, the above command creates two lines, one with the date, the
> second with the number of messages in the queue.  I'd like for the same
> information to be present, however on line line.
> 
> Is there a way to do this ?

How about:

	date ; mailq | head -1 | tr  -d "\n">> /filename 
	
> 
> TIA,
> Mike
> 
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> 		http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.

-- 
---- Fred Smith -- fredex@fcshome.stoneham.ma.us ----------------------------
    "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of
     heaven, but only he who does the will of my Father who is in heaven."
------------------------------ Matthew 7:21 (niv) -----------------------------


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post