[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: sending the output of a script through mail



On Thursday 21 September 2006 09:46, Chris Norman wrote:
> Or possibly:
> script-name > address.txt
> cat addr.txt | mail user
> rm -f addr.txt

Useless use of cat.

    script-name >address.txt
    mail user <address.txt && rm address.txt

But, of course, there's no reason to create a file, if it's not going
to be saved.  Just pipe.

-- 
Garry T. Williams --- +1 678 656-4579


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]