On Fri, Mar 05, 2004 at 11:44:30AM -0500 or thereabouts, Derrick 'dman' Hudson wrote: > On Fri, Mar 05, 2004 at 10:40:31AM -0500, S.D.A. wrote:
> | Dman -- Is there a way to do this with all the que'ed messages at once? > | > | I just looked and I have almost 50 messages in the mailq. Very time > | consuming to do each one by one. > > Something similar to : > > exim -Mrm `mailq | grep '^[^- ]' | cut -d ' ' -f 1` > > BEWARE - I have not tested this on a system with exim because the exim > system has no mail on its queue. You may need (or want) to adjust the > patterns for your system. (I did force a message to get stuck on a > postfix system so I would have something listed in 'mailq') > > Tools like grep, cut, sed, and awk (as well as the shell itself) are > essential for a unix/linux administrator. With a working knowledge of > those tools you can easily automate many tasks, with a solution > talilored to your needs, using the information already available. I agree, and I'm intent on learning those tools. Thanks to you, and also Mark McRitchie, who helped me offlist with a sed script. I need to learn both sed and grep. Regular expressions should be fun to learn. There certainly is some good talent on this list. :) TGIF! -- Steve +++++++++++++++++++++++++++++++++++++++++++++ Friday Mar 05 2004 11:58:01 AM EST +++++++++++++++++++++++++++++++++++++++++++++ printk("autofs: trying to recover, but prepare for Armageddon\n"); -- linux-2.1.92/fs/autofs/root.c:
pgp00000.pgp
Description: PGP signature