Hello, dear community
Please help if you know the answer for the following problem: How can i specify custom variables to be recognized by programs which are executed by "os.system()" in python?
I have a python script which executes several programs via os.system() call. It runs fine when i execute it manually from interactive shell (bash), but when i put it in crontab it some of those programs don't work since they don't find several special environment variables that are present in my .bashrc file.
Trying to figure the problem out i have put two lines in the beginning of my crontab file, so that it looks like this:
Code:
SHELL=/bin/bash
USER=misha
*/30 * * * * /opt/sevzapmodis/pymodis.py >> /home/misha/pymodis.log
but it didn't help. Any ideas what could be the solution?