Last active
February 2, 2018 03:28
-
-
Save davidsword/0c0b363f5cc61de9e345c548acdb5281 to your computer and use it in GitHub Desktop.
Send a string to remote server to be read by a custom widget for StatusBoard via terminal
This file contains 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
#!/bin/bash | |
echo -e "Message: \c " | |
read message | |
echo $message | ssh -i ~/.ssh/rsa.pem user@host "cat > /var/www/message.txt" | |
echo -e "Done.\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment