Question

One of my project needs me to run a Python scripts that are present on VPS. Is it possible to run those scripts from web interface? There are web development platforms out there like Django. Can those can help me in this project?

Example: I need to set a cronjob from web interface on Ubuntu VPS. I want some specific task to happen at some specific time, so for that I need to set a cronjob.

Is it possible?

Or, can I directly launch that Python script from interface without setting a cronjob?

If both case are possible please suggest. It will be a great help.

Thanks

Was it helpful?

Solution

I am not sure to understand what you need here. I'll explain a couple of solutions, pick the one you need.

  1. You can edit the cron table with python and django to start whatever you need to start at a specific time
  2. You can create a python web interface that calls your python script
  3. You can use any languages you want and find the equivalent of python subprocess that allows you to run scripts
  4. Edit the cron table with any languages you want
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top