aboutsummaryrefslogtreecommitdiffhomepage
path: root/threadcat-list.sh
blob: e3ccd673103e02f25635f19760413765dde56897 (plain)
1
2
3
4
5
6
7
8
9
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