Jump to content

gathermail

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. gathermail

    RPi Speed Monitor project question

    Hi, Emmet - That change addressed it. So running something as root isn't simply a permissions elevation issue? There's an actual root user with configurations/assigned permissions/etc. I had noticed the sudo in the tutorial, but my thought was that since we were editing a system file (crontab) we had to have an appropriate level of rights - not that we would also be making changes to an actual root user that would lead to the system not being able to find a config. Make mistakes and learn, I guess. I need to read up more on users and such. Thank you!
  2. gathermail

    RPi Speed Monitor project question

    Hey, Gus; The rights of gdrive were set - drwxr-xr-x 4 pi pi 4096 May 3 2017 drivers-raspi drwx------ 2 pi pi 4096 May 8 2017 .gconf -rwxr-xr-x 1 pi pi 6180256 Oct 2 14:50 gdrive drwx------ 2 pi pi 4096 Oct 8 10:29 .gdrive drwxr-xr-x 2 pi pi 4096 Mar 3 2017 .gstreamer-0.10 The log file is trapping an authentication error - Authentication needed Go to the following url in your browser: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id= <snipped> Enter verification code: Failed reading code: EOF so the script when executed from cron isn't connecting to gdrive, but executing by hand it does connect and update the file on gdrive.
  3. gathermail

    RPi Speed Monitor project question

    Gus, thank you for the answer. The speedtest works like it should now with the path. But... (I'm sorry), even though the file is being updated hourly, it is not syncing properly locally and remotely when executed by cron. Running ~./speedtest.sh by hand does update and sync the file, so the problem does seem to be with cron and the syncing part of the .sh '/home/pi/gdrive sync upload /home/pi/speedtest <myfolderid>'. Thanks, again.
  4. gathermail

    RPi Speed Monitor project question

    Hi, I recently did this project for fun, but I ran into a snag. I can't seem to set the cron job up properly to automate the script. The python and executable scripts work as in the tutorial, as well as updating the .csv to google drive with changes. The contents of /var/log/syslog (grepping for speedtest.sh) even show hourly executions of the job - but the .csv file itself only updates when I run either the python or the executable script. I hunted around a little on google regarding cron, but the information presented there was not mentioned in the tutorial steps (for ex, placing the file to be executed in /etc/cron.hourly). The only thing I noticed that may be a problem is with creating the crontab in the guide - when I type 'sudo crontab -e' the file that is being edited by default is '/tmp/crontab.ZJi6N5/crontab'. So, either the /tmp file is somehow renamed/moved into /var/spool/cron/crontabs, or the fact the file is named that way in tmp is the problem (but then why is the script being called on an hourly basis?). Running crontab -l returns 'no crontab for <myusername>' Any suggestions on what I did wrong, or maybe what step I missed in the guide? I am new to cron stuff and automation, and don't really know how/what to troubleshoot for info, and the references I found on the web assumed more than a base understanding... Anyway - thanks for any advice/help/pointers on how to figure it out myself!
×