|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: pflogsumm cron process
From: Bjørn Ruberg (bjorn
ruberg.no)
Date: Thu Jan 18 2007 - 00:00:14 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mouss wrote:
> Jay Chandler wrote:
>> Anyone have a hint for me how to get this line:
>>
>> /usr/local/sbin/pflogsumm -d yesterday (zcat /var/log/maillog.0.gz;
>> cat /var/log/maillog) 2>&1 |/usr/bin/mailx -s "`uname -n` daily mail
>> stats" chandler
>
> you can't do
> # more (ls)
> you must do
> # ls | more
The following should work, and IIRC works in most shells:
# more $(ls)
This is the same as
# more `ls`
So it seems you forgot a '$'.
By the way, 'ls | more' will not do what you (probably) want, however
'ls | xargs more' will.
--
Bjørn
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]