redirection
Michael
bmike1 at gmail.com
Sun Sep 25 14:03:45 MST 2016
How would I write it to the file? I tried:
while [ true ]>>this; do date +'%s'|tee -a log.log>>this ; \
df -x tmpfs|tee -a log.log>>this ; sleep 10>>this ; done >>this
but that didn't work.
On Sun, Sep 25, 2016 at 4:57 PM, Michael <bmike1 at gmail.com> wrote:
> or.... is there a better way?
>
> On Sun, Sep 25, 2016 at 4:56 PM, Michael <bmike1 at gmail.com> wrote:
>
>> I think I figured it out. Put into a file. then execute the file with the
>> redirection.
>> I need to change the permissions of the file though. Is that correct>?
>>
>> On Sun, Sep 25, 2016 at 4:50 PM, Michael <bmike1 at gmail.com> 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~(-:
>>>
>>
>>
>>
>> --
>> :-)~MIKE~(-:
>>
>
>
>
> --
> :-)~MIKE~(-:
>
--
:-)~MIKE~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160925/2fa7a4b2/attachment.html>
More information about the PLUG-discuss
mailing list