redirection

Brian Cluff brian at snaptek.com
Sun Sep 25 14:18:22 MST 2016


Like this:

while [ true ]; do
date +'%s'
df -x tmpfs
sleep 10
done | tee -a log.log

Brian Cluff

On 09/25/2016 01:50 PM, Michael wrote:
> How do I redirect the out put of this to a file?
>
> while [ true ]; do
> date +'%s'|tee -a log.log
> df -x tmpfs|tee -a log.log
> sleep 10
> done
>
> -- 
> :-)~MIKE~(-:
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160925/392775f4/attachment.html>


More information about the PLUG-discuss mailing list