pass target string by env
ok, 'openssl s_client' doesn't take the hint of an EOF; so kill it