[nmglug] temp
a
akaluta at taosnet.com
Fri Dec 4 17:20:31 PST 2009
Sam:
What I am unclear about is how to go about setting up that writable
file
I tried a shotgun approach.
first sudo touch /var/log/temp and
touch /var/log/temperature/temp.
The main variation I placed in crontab -e is as follows:
* * * * * /usr/bin/digitemp_DS9097U -a -l /var/log/temp
-c /home/a/.digitemprc
does not seem to show up in /var/log/temp
I notice crontab assign a file name
should I have renamed the crontab file /var/log/temp?
a at a-desktop:~$ ls -al /var/log/temp
-rw-rw-r-- 1 root root 0 2009-12-04 14:50 /var/log/temp.
Call me an optimist,but.I believe I can get there from here. Best
Regards Anthony
a at a-desktop:~$ digitemp_DS9097U -a
DigiTemp v3.3.2 Copyright 1996-2004 by Brian C. Lane
GNU Public License v2.0 - http://www.brianlane.com
Dec 04 18:07:50 Sensor 0 C: 17.88 F: 64.17
Dec 04 18:10:38 Sensor 0 C: 20.19 F: 68.38
On Fri, 2009-12-04 at 15:26 -0700, Sam Noble wrote:
> On Fri, 2009-12-04 at 15:14 -0700, Jason Schaefer wrote:
> > Anthony - You probably need to set this up as root (sudo crontab -e).
> > At least to be able to write in /var/log/
>
> And/or digitemp won't be able to write a file called
> "/var/log/temperature" if there's already a directory there as indicated
> in your message to the digitemp list.
>
> Making a directory there and setting up the permissions such that user
> "a" can write to it is a fine idea. But then you'll need to adjust the
> command that you put in crontab so that it writes a _file_ in the
> temperature directory. eg:
> * * * * * /usr/bin/digitemp_DS9097U -a -l /var/log/temperature/digitemplog
>
> ______________________________________________
> > 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