当前位置:网站首页>一秒钟查看一次文件,并将文件最后一行内容结果发送至syslog服务器
一秒钟查看一次文件,并将文件最后一行内容结果发送至syslog服务器
2022-06-23 07:19:00 【时光凉春衫薄】
发送日志的命令
# logger `cat /root/.bash_history |tail -n 1` -n 192.168.1.75logger ` 命令 ` -n 目标地址(logger把 cat 查看/root/.bash_history文件中最后一行的内容发送至192.168.1.75上)
一秒钟执行一次的脚本
#!/bin/sh
while [ true ]; do
/bin/sleep 1
logger `cat /root/.bash_history |tail -n 1` -n 192.168.1.75
done边栏推荐
- 3dmax插件开发环境配置及FileExport和Utilities模板测试
- js中的同步和异步
- Tri rapide + Tri par bulle + Tri par insertion + Tri par sélection
- Focusing on the industry, enabling customers | release of solutions for the five industries of the cloud container cloud product family
- U-Net: Convolutional Networks for Biomedical Image Segmentation
- Using the for loop to output an alphabetic triangle
- 【星球精选】如何高效构建 Roam 与 theBrain 间细粒度双向链接?
- [pit stepping record] a pit where the database connection is not closed and resources are released
- Qt 使用QDomDocument读取xml文件
- YGG Spain subdao Ola GG officially established
猜你喜欢

The Sandbox 与《足球小将》达成合作,将流行的足球漫画及动画带入元宇宙

EXCEL VBA 入门与实用例子

【Veusz】导入CSV中的二维数据

在线JSON转CSharp(C#)Class工具

YGG Spain subdao Ola GG officially established

Yan's DP analysis

JS to determine the added and decreased elements of two arrays

Operation on a bit of binary

Wechat multiplayer chat and Roulette Games (websocket Implementation)
![[deep learning] [original] how to detect targets and draw map and other parameter maps without yolov5 weights or models](/img/f3/ff14cb5439a24e26f977e5f0d15785.png)
[deep learning] [original] how to detect targets and draw map and other parameter maps without yolov5 weights or models
随机推荐
1278_FreeRTOS_借助prvAddCurrentTaskToDelayedList接口理解delayed task
基于51单片机的温度检测监测报警系统设计
Abnormal logic reasoning problem of Huawei software test written test
Live broadcast review | how can the container transformation of traditional applications be fast and stable?
Start appium
【云计算赛项】职业技能竞赛--容器开发部分例题Pig快速开发框架
Decoding and practice of cmaf Technology
Wechat multiplayer chat and Roulette Games (websocket Implementation)
Console Application
在kubernetes中部署kubersphere
利用for循环输出一个字母三角形
Using the for loop to output an alphabetic triangle
What is the experience of being a data product manager in the financial industry
Minio single node deployment Minio distributed deployment fool deployment process (I)
Friends of the week
Online text filter less than specified length tool
Introduction to MySQL system tables
Judge black production based on CDN and client slow log characteristics
NFS special attention to permissions
Ntu-rgbd data set download and data format analysis