RPi5 running
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.62+rpt-rpi-2712
Architecture: arm64
Still learning about Raspberry and the commands.
A few days ago I created a cronjob using with
It's been working but I need to change the times; however, I cannot find the conjob. I think the problem is that when I saved it I didn't change the default location so was used. I now understand that after reboots the contents of /tmp is cleared because it sits in memory. So how do I find where it's being stored?
Possibly relevant that after the cronjob was created I cloned the OS to a new SD.
Post clone: When I use or a new template is brought up, not one with the times noted above. Saving one with different On and Off times to and rebooting does not change the monitor state when the new On time passes. Running or shows the newly created jobs are the only ones running other than what appear to be four installed with the OS - they have dates well before I bought the Pi and installed the OS.
I also tried creating a new cronjob and saving to because I read that's a more appropriate place to save them but that also doesn't change the monitor state at the expected time. The job saved to this location doesn't come up with or .
I'm guessing I'm going about this all wrong so Thanks in advance for guidance:
1) killing the original cronjob and creating a new one in the correct directory, or
2) updating the original cronjob when I know how to find it, then
3) where should I save cronjobs
4) once I've correctly created and saved a cronjob how, in a case like this, do I temporarily override the job and turn the monitor On during the period the cronjob has it off? Asking this because sometimes I access the Pi via Raspberry Pi Connect Screen Share but with the monitor Off the share won't work.
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.62+rpt-rpi-2712
Architecture: arm64
Still learning about Raspberry and the commands.
A few days ago I created a cronjob using
Code:
crontab -e
Code:
0 7 * * * root /usr/bin/vcgencmd display_power 130 23 * * * root /usr/bin/vcgencmd display_power 0
Code:
/tmp/crontab.[random alpha-numeric/crontab
Possibly relevant that after the cronjob was created I cloned the OS to a new SD.
Post clone: When I use
Code:
crontab -e
Code:
sudo crontab -e
Code:
/tmp
Code:
crontab -l
Code:
sudo crontab -l
I also tried creating a new cronjob and saving to
Code:
home/[user]
Code:
sudo crontab -l
Code:
crontab -l
I'm guessing I'm going about this all wrong so Thanks in advance for guidance:
1) killing the original cronjob and creating a new one in the correct directory, or
2) updating the original cronjob when I know how to find it, then
3) where should I save cronjobs
4) once I've correctly created and saved a cronjob how, in a case like this, do I temporarily override the job and turn the monitor On during the period the cronjob has it off? Asking this because sometimes I access the Pi via Raspberry Pi Connect Screen Share but with the monitor Off the share won't work.
Statistics: Posted by berryfarm — Thu Dec 05, 2024 9:06 am — Replies 1 — Views 32