add twtxt client
This commit is contained in:
parent
e9ff6c7efc
commit
637857a6fe
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
PORT=420
|
||||
USER=erik
|
||||
SERVER=fixedpoints.zapto.org
|
||||
|
||||
usage() {
|
||||
>&2 echo "usage: twt post \"your post\"
|
||||
twt show"
|
||||
}
|
||||
|
||||
remote() {
|
||||
ssh -p $PORT $USER@$SERVER $1
|
||||
}
|
||||
|
||||
case $1 in
|
||||
post) remote "echo -e '`date -Im`\t$2' >> ~/twtxt.txt"
|
||||
;;
|
||||
show) remote "cat ~/twtxt.txt"
|
||||
;;
|
||||
*) usage
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue