It's probably not wsh, but your shell that is timing out. If you use the Bourne shell (ie /bin/sh), do the following in your .profile: TIMEOUT=0 export TIMEOUT For C shell and derivatives, try the following in your .cshrc: set autologout=0