Re: redirection

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Cluff
Date:  
To: plug-discuss
Subject: Re: redirection
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 -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss