$ ssh -t localhost 'perl -E "say && sleep 1 for 1..10"'