12 points · by adionditsak · 12y ago · 8 comments
I have created my second Python script, and would appreciate comments, contributions or just someone to discuss it with, as i am sure it can be optimized in many ways, as it is a part of my learning. The script is for configuring UNIX/Linux machines with shell scripts with Python - So pretty much a Python way of Fucking shell scripts.
I added it to Github so you can view it there: https://github.com/adionditsak/shellconf.py :-)
Sincerely, Anders
I have created my second Python script, and would appreciate comments, contributions or just someone to discuss it with, as i am sure it can be optimized in many ways, as it is a part of my learning. The script is for configuring UNIX/Linux machines with shell scripts with Python - So pretty much a Python way of Fucking shell scripts.
I added it to Github so you can view it there: https://github.com/adionditsak/shellconf.py :-)
Sincerely, Anders
Thanks.
Yeah, Fabric is awesome. Really like it. Have not looked that much at Paramiko tho.
"Run local shell scripts chronologically on defined remote servers asynchronously."
reads like Yoda-speak to me. :)EDIT: With that said... could be awesome we contributions.
for f in scripts/*;do
#logrotate here
scripts/"$f" &> "logs/$f.log"
done
or something like that?EDIT: not trying to be rude, I just don't understand.