or download this
tester@okon:~$ /tmp/get_prefixes.v01.pl /tmp/bg2
# open_ex: ['/opt/openssh/bin/ssh','-V']
# io3 mloop, cin: 0, cout: 1, cerr: 0
...
# master state jumping from _STATE_RUNNING to _STATE_GONE
# master state jumping from _STATE_GONE to _STATE_GONE
tester@okon:~$