Try assing -n and -N to the ssh command, and remove the sleep 30; exit bit.
-N will tell it to run no command, it needs protocol version 2.
-n will let it run in the background, only use it if it doesn't need to ask for a password from the command line.
On Tue, 2004-09-14 at 21:07 -0500, phusion wrote:
I've been trying to figure out how to check my POP3 mail securely in Evolution by tunneling using openssh. Right now, I have a shell script I run to check my email (evolution.sh). #!/bin/sh # set up SSH tunnel ssh -L 8110:mailserver:110 -L 8025:mailserver:25 [EMAIL PROTECTED] 'sleep 30; exit' & # start up Evolution evolution Inside Evolution I've set it up to check localhost:8110 and localhost:8025. When I run the script it opens Evolution and I can check my email, but if I leave Evolution open for a few minutes then decide to email someone, by that time the ports 8110 and 8025 are closed. Is there any way to allow my script to keep running and keep the ports open until Evolution has been closed? Let me know how I can do this. Thanks. _______________________________________________ evolution maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution
--
|
<<attachment: zed-48.small.jpg>>
