Scan a directory for changed files and tail them
What's this for?
When you need to see the output from all changed files within a directory.
Why doesn't tail -f /var/logs/* work?
Unfortunately, tail -f /logs/* may not do what you want it to do. Bash will expand * to all existing files within /logs/ and then show the extra lines added to each of them.
It also will not recurse down, any levels deeper than the current directory.
How is fstail different then?
fstail uses the gopkg.in/fsnotify to detect both new files, and existing files that are changed. It then starts concatenting their contents to the terminal.
I needed this for actuated.dev which launches microVMs on servers for CI.
Each VM launched will create a different file at: /var/log/actuated/GUID.txt, and tail -f * would only find existing files.
- Devel package for openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout utilities/fstail && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_service | 0000000717 717 Bytes | |
_servicedata | 0000000233 233 Bytes | |
fstail-0.1.0.obscpio | 0000009226 9.01 KB | |
fstail.changes | 0000000223 223 Bytes | |
fstail.obsinfo | 0000000095 95 Bytes | |
fstail.spec | 0000002056 2.01 KB | |
vendor.tar.gz | 0000957028 935 KB |
Latest Revision
initialized devel package after accepting 1204094
Comments 0