Home > other >  How to use crontab timing under Linux executing python program
How to use crontab timing under Linux executing python program

Time:09-29

I installed the python3 and configure the virtual environment, a virtual environment installed some third-party libraries, I wrote a sh scripts, performed manually programs can be executed, after joining crontab hint I can't find a custom module, should be a path problem, but I don't know where is wrong?
To give directions, thank you!
 
#!/bin/bash
Export PYTHONPATH=$PYTHONPATH
CD/usr/local/python3/bin/ENV/
Source./bin/activate
CD/root/pythonproject/History
Python3 Mod/crontabtest py
Deactivate

CodePudding user response:

someone,,,,,,,,,,,
  • Related