gpt4 book ai didi

linux - Unix/Linux/Solaris : Shell script to read log files present in multiple locations on a single run

转载 作者:太空宇宙 更新时间:2023-11-04 05:05:08 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

8年前关闭。




Improve this question




我们正在使用solaris box,其中正在生成多个日志文件..每次我们需要通过putty连接并转到特定路径并通过tail命令或grep打开它时读取每个文件..
我想创建 1 个 shell 脚本,它可以减少我每次打开每个日志文件的工作量。它会帮助我们减少很多工作量。
在 shell 脚本中,我可以配置每次所需的所有日志文件的路径,并且用户运行此 .sh 脚本后,所有日志文件都会打开......

有人可以帮我实现这个想法吗..
在这方面的任何帮助都将不胜感激。

最佳答案

我建议不要在本地打开日志文件,而是使用 syslog 将日志集中到 syslog 服务器上的唯一位置。

关于linux - Unix/Linux/Solaris : Shell script to read log files present in multiple locations on a single run,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17532181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com