+ 1

Any one knows Python os moule on Windows & linux

Using python run software configuration in python

16th Dec 2019, 5:58 PM
Ganesh Ram Kumar A
9 Respostas
+ 2
Can you give more details ?
16th Dec 2019, 5:59 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
how about: commands = ["install nagios", "update"] for command in commands: os.system(yum command) ?
17th Dec 2019, 9:58 AM
grdr
0
I try to write code for automatic install software in servers,but i have pblm i don't know to write properly ,only know basically
17th Dec 2019, 1:42 AM
Ganesh Ram Kumar A
0
import os import sys (?)
17th Dec 2019, 5:37 AM
grdr
0
I still don't understand ? Where is the use of os ans sys, and how am I supposee to know what you're trying to do ?
17th Dec 2019, 9:31 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
I don't know what he's trying to do either, it was a recommendation to look at those modules.
17th Dec 2019, 9:42 AM
grdr
0
I am trying to install nagios ,some other software on linux using pyhon ,i am write it Imports os Os.system( yum install nagios) Os.system( yum update) Like same this multi command i want try soming new methond cmd line i don't want repect same line every time
17th Dec 2019, 9:54 AM
Ganesh Ram Kumar A
0
If this is the solution, then sololearn should consider making the courses harder. Someone who finished the python here should be able to do much more than a for loop, yet he's struggling with this
17th Dec 2019, 10:00 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
M thanks i will try
17th Dec 2019, 10:18 AM
Ganesh Ram Kumar A