blob: aff794b1267fd8422f6dde80df6042306c551772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
THREAD_NAME=$1
if [ ! -z "${THREAD_NAME}" ]; then
cat - | ssh $THREADCAT_USER "umask 002 && echo `whoami` -- `date` >> /opt/threadcat/$THREAD_NAME && cat - >> /opt/threadcat/$THREAD_NAME"
echo Posted to $THREAD_NAME
else
echo You did not provide a thread name.
echo USAGE: "cat <YOURMESSAGE> | threadcat write THREAD_NAME"
fi
|