[nmglug] log auto refresh

a_kaluta akaluta at taosnet.com
Wed Dec 16 02:56:12 PST 2009


Interesting phenomena going on i.e. ~/data1.txt
or /var/log/temperature/temp.log,error message:either permission denied
or cannot locate the file.  Tried permutations of chmod and chown, also
either >  or | ~/data2.txt, results nada! permission denied sudo or
user.

these work:
watch -n.1 'cat /proc/interrupts' 
watch -n 5 'digitemp_DS9097U -a'

these do not:
watch -n 5 'digitemp_DS9097U -a' >> ~/data2.txt
watch -n 5 'digitemp_DS9097U -a  >> ~/data2.txt'
/var/log/temperature/temp.log >> ~/data2.txt
/var/log/temperature/temp.log  | ~/data2.txt

crontab entry:
* * * * *  /usr/bin/digitemp_DS9097U -a -o3
-l /var/log/temperature/temp.log -c /home/a/.digitemprc 

                             Any insights? tnx,Anthony


On Tue, 2009-12-15 at 15:28 -0700, Jason Schaefer wrote:
> use watch, it will update every 2 seconds by default. use -n to change the time
> 
> watch data1.txt
> 
> 
> On Tue, Dec 15, 2009 at 1:23 PM, a <akaluta at taosnet.com> wrote:
> >  digitemp_DS9097U  -a -d10 -n180 -o3 -ldata1.txt. Am Using the previous
> > code,I believe to be pHp,it is using the same commands,with additions,as
> > "strftime"
> > That script reads digitemp output each ten seconds,180 times, Fahrenheit
> > output to data1.txt,with the page is open, I must manually refresh
> > "data1.txt" to update.
> > Will anyone suggest a straightforward method to auto refreshing
> > "data1.txt" on a running basis,and get by a manual update. tnx, Anthony
> >
> > _______________________________________________
> > nmglug mailing list
> > nmglug at nmglug.org
> > https://nmglug.org/mailman/listinfo/nmglug
> >
> _______________________________________________
> nmglug mailing list
> nmglug at nmglug.org
> https://nmglug.org/mailman/listinfo/nmglug




More information about the nmglug mailing list