Python Forum

Full Version: Python to interact with the Linux Command Line - Centos/RHEL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

This is part of my project. If I have a Python script ready to work on CLI as menu-driven to perform certain System Administration tasks on a Linux Server like monitoring, check history logs, install required package, perform a reboot, backup configuration, manage user accounts/website files on the server, transfer accounts, etc, how I can create a web interface for the same to work through a website(not a public hosted website but has only internal access for staff)?. Through the web interface, it will be much easier to do that tasks

What are the exact requirements to accomplish this for having Python interact with the Linux(Centos/RHEL) command line in depth through the web interface?.
dont know if i understand well, but it should be possible making a website interface - just as a wrapper (similarly like a gui interface) around the cli.

you can make a website with a menu option for instance and by clicking a button a particullar command will send as subprocess to cli, then response from cli will be saved and send to web interface.

just learn some web framework, flask would be good for this i believ
(May-09-2020, 04:52 PM)experimental Wrote: [ -> ]dont know if i understand well, but it should be possible making a website interface - just as a wrapper (similarly like a gui interface) around the cli.

you can make a website with a menu option for instance and by clicking a button a particullar command will send as subprocess to cli, then response from cli will be saved and send to web interface.

just learn some web framework, flask would be good for this i believ

Thank you very much @experimental for your reply.

I will look into that further.