https://github.com/lemire/emailwhendone
A script that sends an email when a task has been completed
https://github.com/lemire/emailwhendone
email script
Last synced: 3 months ago
JSON representation
A script that sends an email when a task has been completed
- Host: GitHub
- URL: https://github.com/lemire/emailwhendone
- Owner: lemire
- License: apache-2.0
- Created: 2016-03-27T16:15:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-27T17:58:38.000Z (almost 10 years ago)
- Last Synced: 2025-03-05T14:29:23.463Z (11 months ago)
- Topics: email, script
- Language: Shell
- Size: 5.86 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emailwhendone
A script that sends an email and generally tries to notify you
when a task has been completed.
## Requirement
- It is a bash script.
- Assumes Linux or MacOS with a working ``mail`` command.
## Usage
Instead of typing
```bash
sort giganticfile
```
and forgetting about it...
Try
```bash
emailwhendone.sh myemail@something sort giganticfile
````
It will email myemail@something when the task terminates.
## Extra
In addition to email, the script will try to notify you using
``growl`` or ``notify-send`. On a Mac, you can install the legacy
growl for free: https://bitbucket.org/pmetzger/growl/downloads
Make sure to install ``growlnotify`` from the extras. On a recent
Linux installation, notify-send should already be present.
## Troubles
Though most Linux and Mac computers come with a working ``mail``
command, it may not actually work because of anti-spam measures.
You should check whether email works with a command such as
this one :
```bash
echo "test"| mail -s "test" youremail
```
If this does not work, you need to seek help.
## Credit
Inspired by Emmanuel Bernard's script
https://emmanuelbernard.com/blog/2015/03/26/being-notified-when-commands-end/