mirror of
https://codeberg.org/privacy1st/exec-notify
synced 2024-12-22 23:16:04 +01:00
improve README
This commit is contained in:
parent
3f82cdd966
commit
8d2e0165a4
23
README.md
23
README.md
@ -1,5 +1,8 @@
|
|||||||
# execNotify
|
# execNotify
|
||||||
|
|
||||||
|
Send notification on failure.
|
||||||
|
Or send an unconditional notification.
|
||||||
|
|
||||||
## setup
|
## setup
|
||||||
|
|
||||||
Create a `config.ini` file inside `execNotifyDir/config`.
|
Create a `config.ini` file inside `execNotifyDir/config`.
|
||||||
@ -12,13 +15,29 @@ For the required fields, see `execNotifyDir/config/config.ini.example`
|
|||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
## usage
|
## usage of execNotify
|
||||||
|
|
||||||
Add `execNotify` in front of your command to execute.
|
Add `execNotify` in front of your command to execute.
|
||||||
|
|
||||||
You can pipe into `execNotify` but **not** from `execNotify
|
You can pipe into `execNotify` but **not** from `execNotify`
|
||||||
as the output gets modified.
|
as the output gets modified.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
For `ls /home` run `execNotify ls /home`
|
For `ls /home` run `execNotify ls /home`
|
||||||
|
|
||||||
|
## usage of notify
|
||||||
|
|
||||||
|
Send stdout via mail:
|
||||||
|
|
||||||
|
`echo "Hello world!" | notify`
|
||||||
|
|
||||||
|
Or with optional subject:
|
||||||
|
|
||||||
|
`echo "Hello world!" | notify "someSubject"`
|
||||||
|
|
||||||
|
Or without the pipe:
|
||||||
|
|
||||||
|
`notify "someSubject" "Hello" "World!" "What's" "up?"`
|
||||||
|
|
||||||
|
`notify "someSubject" "Hello World! What's up?"`
|
||||||
|
Loading…
Reference in New Issue
Block a user