hi, well python can run outside of anything…just run the cron job as usual in any linux distro, precisely said, you dont even need virtualmin to run your crons… regards how to run it, google is flooded with info.
I created job and executed by clicking “Run Now” button and everything worked well, but when I scheduled it to run… its not working…
in the commend field I just placed like this - > python \folder1\folder2\file.py… (as i said when I run immediately it works great…)
I would check the user you running the cron job under… it should be domain owner (try to avoid root user unless you have to run that job under root user). also you can explicitly use /usr/bin/python in your crontb command… aka: /usr/bin/python /path/to/your/script.py - that should make it working… also check your shebang but, I guess it is correct.
Edit: attaching screenshot how might simple cron job schedule looks like in virtualmin… (working one)