Re: Simple Scripting ? (Is directory empty?)


Subject: Re: Simple Scripting ? (Is directory empty?)
From: Adam Price (Adam@oldchildrensbooks.com)
Date: Fri Dec 17 1999 - 20:12:35 MST


On Fri, 17 Dec 1999, Adam Price wrote:
> On Fri, 17 Dec 1999, Tom Pollard wrote:
> >
> > Try this, then:
> >
> > if [ -z "`ls /var/qmail/alias/pppdir/new/`" ]; then
> > echo 'Its empty'
        
> > else
> > echo 'Its not empty'
        

> > fi
> >
> Except that you gave me the wrong flag
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I take that back. I just didn't read carefully enough.

> this works GREAT! Thanks
> a bundle.
>
> -Adam

So ..... how do I suppress the status messages that maildirserial
gives. I now have it sending in the background while I run pine, but
when I quit pine, I get long success reports from maildirserial. The
obvious way to suppress would be a flag in the call, but there is no such
flag mentioned in the maildirserial man pages. There must be a way to
send all output of the script to /dev/null or something?
        (All the info is duplicated in the syslog, so I really don't need
to see it every time.)

-- 
adam@oldchildrensbooks.com

Like frozen sentries of the serengeti, the century-old termite mounds had withstood all tests of time and foe - all tests, that is, except the one involving drunken aardvarks and a stolen wrecking ball." -- Gary Larson



This archive was generated by hypermail 2a24 : Sun Jan 02 2000 - 12:12:58 MST