#!/bin/bash

(echo close 1; sleep 1) | telnet 127.0.0.1 18888