#!/bin/sh

if (ps -fu$USER -F "%c %P %a" | grep ftpd | grep -v grep | grep -v \ 1\ > /dev/null); then
	echo "Remote ftpd connections.."
	echo "   PID   SITE, USER, CMD"
	ps -fu$USER -F "%c %P %a" | grep ftpd | grep -v grep | grep -v \ 1\  | cut -d' ' -f3-
else
	echo "No remote ftpd connections"
fi

