[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Command line help
- From: Michael Kleber <kleber math mit edu>
- To: cajun cajuninc com, redhat-list redhat com
- Subject: Re: Command line help
- Date: Tue, 1 Dec 1998 10:51:54 -0500 (EST)
> 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.
echo `date` `mailq | head -1` >> /filename
Though if I were you I'd put some field delimeter in, like
echo `date` -- `mailq | head -1` >> /filename
It separates things visually and might make administration easier if
you want to do aytomated things to the file later on.
--Michael Kleber
kleber math mit edu
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]