shell脚本运行日志通用模块
目标 实现记录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 //发生异常,调用异常,程序退出
其它类似信息