Files
cheatsheet-tldr/tldr/noti
2025-11-30 00:23:24 +00:00

22 lines
571 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# noti
> Monitor a process and trigger a banner notification.
> More information: <https://github.com/variadico/noti/blob/main/docs/noti.md>.
- Display a notification when tar finishes compressing files:
`noti {{tar -cjf example.tar.bz2 example/}}`
- Display a notification even when you put it after the command to watch:
`{{command_to_watch}}; noti`
- Monitor a process by PID and trigger a notification when the PID disappears:
`noti {{[-w|--pwatch]}} {{process_id}}`