> Thanks for that Steven. Do you generally use a different shell that allows > you to use "ssh_pid=$!"? Its because we're backgrounding ssh using -f, instead of background it with the bash operator '&'. ssh a & echo pid $! reports the pid as expected. -- Steven Kurylo