shell - 编写警报脚本
问题描述
我在文本文件中有如下数据。
source_table_name | last_run_timestamp | freq_in_secs
------------------------------+---------------------+-----------------------
table1 | 08/19/2019 14:30:27 | 300
table2 | 08/19/2019 14:30:26 | 600
table3 | 08/19/2019 13:40:21 | 3660
last_run_timestamp + freq_in_secs + 1200 secs > current timestamp
如果然后发出警报,我想发送警报。我将在文件中有 100 行这样的行。我将不得不阅读此文件,进行上述计算,然后使用 shell 脚本发送警报。
解决方案
推荐阅读
- gmail - 在 gmail 中创建超链接到共享驱动器上的文件
- html - 如何在表格的第一行下放一行
- css - 如何在 CSS 中完成这个粗偏移下划线?
- ruby-on-rails - 为什么我会收到此路由错误?ActionController::RoutingError (没有路由匹配 [GET] "/assets/toastr.js.map"):
- python - Break 语句仅适用于登录的一半
- excel - 尝试编写 bash 脚本来创建具有特定工作表名称的 excel 文件
- python - numpy/scipy 的 Python 多处理速度慢
- .net - 如何在 uhttpsharp 请求处理程序中关闭客户端连接?
- python - 如何使用节点客户端库以不同的名称上传本地文件?
- java - Spring Boot 中是否有一个很好的 zalando-problem 实现示例?