aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xthreadcat-list.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/threadcat-list.sh b/threadcat-list.sh
new file mode 100755
index 0000000..e3ccd67
--- /dev/null
+++ b/threadcat-list.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+CICADAS_USER=$1
+
+if [ ! -z "${CICADAS_USER}" ]; then
+ ssh $CICADAS_USER@cicadas.surf "ls -lt /opt/threadcat/" | awk '{ s = ""; for (i = 6; i <= 9; i++) s = s $i " "; print s }'
+else
+ echo You did not provide a user name
+ echo USAGE: threacat-list USER
+fi