[Python] Running python script on crontab is causing permissions errors but running via...

Discussão em 'Python' iniciado por Stack, Agosto 25, 2025.

  1. Stack

    Stack Membro Participativo

    I hear that the permissions level via crontab and terminal is totally different.

    More specifically, my python script has a command to write a file into the /tmp/ directory. On a linux machine, everything works, both cron and regular shell.

    However on OSX, the terminal runs fine but when this command is set on the crontab, an error appears saying that we don't have permissions to write to the /tmp directory.

    How should I handle this?

    Thanks.

    Continue reading...

Compartilhe esta Página