您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

shell脚本运行日志通用模块

2025/4/7 23:16:50发布26次查看
目标 实现记录shell执行的开始时间,结束时间,运行状态,错误信息等,以函数封装日志记录的方式,脚本调用函数 源码 通用函数脚本program_log_new.sh function init_log(){sqlplus -s test/passw0rd@orcl eofinsert into program_log values($id,$day,$1, s
目标实现记录shell执行的开始时间,结束时间,运行状态,错误信息等,以函数封装日志记录的方式,脚本调用函数
源码通用函数脚本program_log_new.shfunction init_log(){sqlplus -s test/passw0rd@orcl <${logdir}/xx_$time.log finish_write //发生异常,调用异常,程序退出
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product