Thank you all, (everyone.)
Type: Posts; User: shadowsaunter; Keyword(s):
Thank you all, (everyone.)
Hi, I'm trying to find a way to rotate my logfiles. What I'm doing is correctly rotating my logfile, but Python no longer writes to the file after it is rotated. I'm rotating the files using a...
I altered the autostart.cron above so that I am trying to set the environment variable, and I also added a test script to write a log file to see if this file runs:
#!/bin/bash
export...
In response to your 2nd question, what are the 4 locations? I set crontab for this user with crontab -e, which is visible at /var/spool/cron/crontabs/sammy
Yes, omg is that it? I’m using a database, and I’m setting the db credentials in .bashrc. Does .bashrc not get looked at during cron boot?
Thank you for putting me on the right track!
I can't get a bash script to start my python program from crontab, not sure what is going wrong:
My crontab setting is:
# Crontab file
SHELL=/bin/bash
I guess I just needed 'sudo' in front of my wget command.
sudo wget --no-check-certificate -qO - https://packages.grafana.com/gpg.key | sudo apt-key add -
This worked for me. Sorry...
I'm trying to install Grafana on Ubuntu 20.04 LTS, but when I try to get the GPG key with the command:
wget --no-check-certificate -qO - https://packages.grafana.com/gpg.key | sudo apt-key add...