RaTTuS wrote:1) dont use sudo in cron
if you need to run it as root use the roots cronttab
i.e.
sudo contrab -e
So i should edit it to look like...
37 20 * * * python /BVK/ds18.py ???
Also I am a n00b, but i assume you meant 'sudo crontab -e' ???
RaTTuS wrote:2) always use full paths to everything
.... /full/path/to/command/processor /full/path/to/script
or
... /full/path/to/script
as you will have
#!/full/path/to/processor
in the first line of your script anyway
ok this is good, I have seen this line in scripts from time to time but never knew what it did or how to apply it. Is the "#!/full/path/to/processor" going to be the same for eveyone on a Pi? I dont quite get what this is doing?
I have never used this first line before, but my basic scripts have run (up until this one).
RaTTuS wrote:
as you are not showing on the command line this must be in your script
again have the full path to the output file in there
this is the one thing I was able to check without further clarification, i went through my script and realized that I had only put output = 'outputFile.txt', i just changed it to output = '/BVK/outputFile.txt' and it has just run successfully and automatically.
RaTTuS wrote:and I would use a RAM disk location i.e.
/tmp
What would you use this for??
Thanks for your help!