Re: sending the output of a script through mail

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

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux