間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

Ansibleアカウント作成

python -c 'from __future__ import print_function;import crypt;print("user: name=user group=users password=",end="");print(crypt.crypt("password", "$1$SomeSalt$"))'

スプレッドシート生成

="python -c 'from __future__ import print_function;import crypt;print(""user: name="&  A2 & " group=users password="",end="""");print(crypt.crypt("""& B2 & """, ""$1$SomeSalt$""))'"

参考
http://www.lifewithpython.com/2013/12/python-print-without-.html
http://y0m0r.hateblo.jp/entry/20140425/1398439949

このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。