Skip to content

Instantly share code, notes, and snippets.

@davidsword
Last active February 2, 2018 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsword/0c0b363f5cc61de9e345c548acdb5281 to your computer and use it in GitHub Desktop.
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
#!/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