> put everything in a shell script, and run the script. Yea, I tried that but neglected to see how it behaved from inside an ssh session. It works there but with plink :( Back to the drawing board... jlc