Forums

run a task in .sh file

Hi Guys,

I'm trying to run a schedule task to run a cli command in flask. (flask "cli command"). I can't setup a bash file to make this. I need:

1) run this sh file inside my virtualenv and can execute the command (flask "custom clicommand"). Anyone could help me? I'm totally noob in create .sh file .

You need to do it similarly to https://help.pythonanywhere.com/pages/VirtualEnvInScheduledTasks and run flask cli with python -m