aboutsummaryrefslogtreecommitdiffhomepage
path: root/threadcat-list.sh
diff options
context:
space:
mode:
Diffstat (limited to 'threadcat-list.sh')
-rwxr-xr-xthreadcat-list.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/threadcat-list.sh b/threadcat-list.sh
index e3ccd67..420a9ff 100755
--- a/threadcat-list.sh
+++ b/threadcat-list.sh
@@ -1,10 +1,4 @@
#!/bin/bash
-CICADAS_USER=$1
+ssh $CICADAS_USER@cicadas.surf "ls -lt /opt/threadcat/" | awk '{ s = ""; for (i = 6; i <= 9; i++) s = s $i " "; print s }'
-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