[WBEL-users] bash causes sporadic job control output
Alan Sparks
asparks@quris.com
Tue, 20 Jul 2004 14:49:54 -0600
Ok, so "-v" or not. A cut/paste a little out of sync. Doesn't matter,
same result no matter what I put in there.
The code runs perfectly on RH 7.2, FC2, and Solaris with a bash shell.
And no, /opt/sendmail/mailq is Sendmail code, not a script. And it's
working fine too, I've checked that very carefully.
-Alan
Kirby Bohling wrote:
> On Tue, Jul 20, 2004 at 10:29:19AM -0600, Alan Sparks wrote:
>
> <snip...>
>
>>/home/asparks/bin/mtabacklog: line 7: 3810 Done
>>mailq -v
>> 3811 | perl -n -e '/^\s+\<.*\@(.*)\>/ &&
>>print "$1\n"'
>> 3812 | sort
>> 3813 | uniq -c
>> 3814 Broken pipe | sort -nr
>>
>
> <snip...>
>
> Something isn't correct. You either aren't running what you think
> you are, or there is a cut and paste gone bad....
>
> Your above command says "3810 Done mailq -v"
>
> However, your script doesn't runs "mailq", not "mailq -v". So now
> I'm worried about that then I am about anything else. Either you
> aren't posting exactly what you are running, or you aren't running
> what you think you are. Finally, why is "mailq -v" on line 7? The
> script you posted has "mailq" on the second line?
>
> Is "/opt/sendmail/mailq" a script by chance?
>
> Thanks,
> Kirby
>
>
>>====== the script for reference =====
>>#!/bin/sh
>>/opt/sendmail/mailq \
>> | perl -n -e '/^\s+\<.*\@(.*)\>/ && print "$1\n"' \
>> | sort \
>> | uniq -c \
>> | sort -nr
>>
>>
>>--
>>Alan Sparks, Sr. UNIX Administrator asparks@quris.com
>>Quris, Inc. (720) 836-2058
>>
>>_______________________________________________
>>Whitebox-users mailing list
>>Whitebox-users@beau.org
>>http://beau.org/mailman/listinfo/whitebox-users
>>
--
Alan Sparks, Sr. UNIX Administrator asparks@quris.com
Quris, Inc. (720) 836-2058