Background tunnel

From: Jim Lill (jpl@jpl.vectorbd.com)
Date: 11/24/02


From: "Jim Lill" <jpl@jpl.vectorbd.com>
Date: Sun, 24 Nov 2002 20:55:49 GMT


I want to set up a tunnel to a remote system and have it all happen in the
background. I need to use password etc. This works, but not in the bg

#!/usr/bin/expect
spawn ssh -x -p 23 -L 25:localhost:25 -L 143:localhost:143 me@host.com
expect {
assword: { send mypw\n; interact }

what do I need to do?

TIA

-Jim