Execute Linux service commands using Python? | Sololearn: Learn to code for FREE!

+5

Execute Linux service commands using Python?

I need to ssh to a Linux server as a normal user and execute service command (with sudo privileges).I need to do this using a Python script, and also need to bypass the sudo credentials which the Linux shell will ask when executing sudo commands. Can anyone help me out?

11/21/2017 1:56:23 PM

Vamsee

1 Answer

New Answer

+1

http://www.paramiko.org/