Created
October 11, 2021 17:55
-
-
Save ThatsJustCheesy/861f02c6c28e00e725c29cd13744be85 to your computer and use it in GitHub Desktop.
Stupid simple instant messaging via netcat with desktop notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nc -l $IN_PORT | bash -c "while true; do read msg; osascript -e \" display notification \\\"\$msg\\\" \" & done" | |
nc $OUT_ADDRESS $OUT_PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment