方法之一:
#!/usr/bin/python # -*- coding: utf-8 -*- import shutil,os os.system('cat /var/tmp/cslc/aw/war/aw.war')
来源参考:python中执行shell命令的几个方法小结