#!/bin/sh

# This is a very slow method since we sleep a lot to get correct timing

echo "127.0.0.1 $1" > /etc/hosts
(sleep 2; echo "id"; sleep 1; echo "QUIT"; cat) | nc 127.0.0.1 21 &
sleep 1; ps auxww | grep ftpd | grep -v grep
sleep 2