OVH Cloud OVH Cloud

Tuto

2 réponses
Avatar
Guillaume ALLEON
Bjr,

Existe-t-il un tutorial python plutôt orienté administration Linux ?
Merci
Guillaume

2 réponses

Avatar
R12y
Guillaume ALLEON :

Bjr,


Bonjour

Existe-t-il un tutorial python plutôt orienté administration Linux ?


Je n'en connais pas.
Mais, comme l'admin fait certaines choses en lignes de commandes au
travers d'un "shell", j'ai posé une fois la question de savoir si il
existait un shell dont la syntaxe serait presque python.
Il y en a: ipython (http://ipython.scipy.org/)
Une fois installé (il y a des packages Debian et Fedora dans les
distribution standard), un petit "ipython -p pysh" et tu es en "shell
python".
Ensuite, il te faut apprendre comment fonctionnent les modules os et sys,
car ils te seront utiles. ipython a un défaut: la gestion des "jobs": il
n'est pas encore au point pour ça (d'après la mailing list).
Voilà.

--

http://www.onirik.net/article.php3?id_article7
http://www.maemo.org/platform/docs/howtos/howto_new_application.html
http://www.linuxdevices.com/files/article057/index.html

Avatar
bruno at modulix
Guillaume ALLEON wrote:
Bjr,

Existe-t-il un tutorial python plutôt orienté administration Linux ?
Merci


google +python +sysadmin

http://www.samag.com/documents/s‰64/sam0312a/0312a.htm
http://www.unixreview.com/documents/s83/sam0401d/

etc...


--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in ''.split('@')])"