转:linux开机自动运行

 实现目标:在Linux启动时,自动运行位于普通用户test1根目录下的脚本程序test.py,该程序会在每次执行时自动向本地日志文件追加一条记录,源码以下: python     from datetime import datetime shell     now=datetime.now() bash     f=open('test.log','a') 函数     f.write('%s
相关文章
相关标签/搜索