Go to advanced search

by johnnyrobot
Fri May 24, 2019 6:53 pm
Forum: Python
Topic: Python Script Spawned by Cron or Systemd doesn't write files..?
Replies: 2
Views: 571

Re: Python Script Spawned by Cron or Systemd doesn't write files..?

That was it! When I setup the application as a service, there is a "WorkingDirectory" assignment that I was missing. Once specified, it's working as it should. Thank you! [Unit] Description=Time lapse camera application [Service] WorkingDirectory=/var/www/camera/ User=root ExecStart=/usr/bin/python3...
by johnnyrobot
Fri May 24, 2019 5:04 pm
Forum: Python
Topic: Python Script Spawned by Cron or Systemd doesn't write files..?
Replies: 2
Views: 571

Python Script Spawned by Cron or Systemd doesn't write files..?

Hi all, I've written a Raspberry Pi application (Ubuntu Mate) that's essentially a time-lapse camera. Every 5 seconds, it snaps an image and writes it to disk. When I start the application manually from the terminal, it works as expected. When I configure the script to execute automatically at start...

Go to advanced search