2016-07-30から1日間の記事一覧
実行するときはsudoで実行する。 #!/usr/bin/python import commands def command(cmd): check = commands.getoutput(cmd) if( len(check) ): print check ### if __name__=='__main__': lis1 = ["update", "upgrade"] lis2 = ["emacs24", "samba", "openssh…
実行するときはsudoで実行する。 #!/usr/bin/python import commands def command(cmd): check = commands.getoutput(cmd) if( len(check) ): print check ### if __name__=='__main__': lis1 = ["update", "upgrade"] lis2 = ["emacs24", "samba", "openssh…