https://github.com/pinjasaur/nudge
👉 nudge your buddies with a random message
https://github.com/pinjasaur/nudge
bash ssh
Last synced: 11 months ago
JSON representation
👉 nudge your buddies with a random message
- Host: GitHub
- URL: https://github.com/pinjasaur/nudge
- Owner: Pinjasaur
- License: mit
- Archived: true
- Created: 2016-09-25T13:53:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T18:59:39.000Z (over 8 years ago)
- Last Synced: 2025-03-30T12:23:19.712Z (about 1 year ago)
- Topics: bash, ssh
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nudge
`write` your buddies a random message. `nudge` works by checking who's online
(via `who`), filtering it to users you specify, and sending each one of them a
randomly selected message (via `write`) from an array of messages you specify.
> **NOTE:** this script is developed in an envrionment with RHEL 7.2 and bash
> 4.2.46. It _should_ work in other environments, but your mileage may vary.
## Usage
To execute, simply do `/path/to/nudge`.
You'll want to configure the `$users` variable to specify the usernames that
you're looking to message. Since it's being piped directly to `grep` you'll
want to delimit them with pipes (`|`) for a proper regex.
The messages being sent can be configured in the `$phrases` variable.
If you'd like to be extra persistent and annoying you can setup the script to
run periodically as a cronjob.
## Contributing
Could this be improved? Fork the repo, commit your changes, and send a pull
request my way.
## Thanks
Shoutout to [@pjbirr](https://github.com/pjbirr) and
[@galordmtu](https://github.com/galordmtu) for helping with testing and such.
## License
Licensed under [MIT License](/LICENSE).