Can python be used to connect to a server and set it all up and warn and
stop if there is an "error"
At first i was gonna use 'expect' script to do this,
then i realized python would be the best.
python can perhaps run
yum install httpd-devel -y
and then find out if it finished installing or not.
and if fails, it can stop and show a warning.
if it succeeds it can run the next command
yum install python -y
this whole thing becomes a 'sphere" that gets repeated
for all 20-30 commands.
can python do this for me?
perhaps i can use it with mod-wsgi and watch it all unfold infront of my
eyes via web browser ?
and if an error shows up, i simply can re-run the python script given that
it stopped before doing anything else.
isn't it true python can be much more precise and solid with these things
compared to..
running a .sh script on the server ?
No comments:
Post a Comment