def create_shell_script(filename, shell_script):
shell_script = '#!/bin/bash\n' + 'echo Entered ' + filename + '\n' + shell_script
shell_script = shell_script + 'echo Exited ' + filename + '\n'
with open(filename, 'w') as file_:
file_.write(shell_script)
fd = os.open(filename, os.O_RDONLY)
os.fchmod(fd, 0755)
os.close(fd)
rotational_first_multipoint_backup.py 文件源码
python
阅读 37
收藏 0
点赞 0
评论 0
评论列表
文章目录