Hello, As part of my administration tasks I sometimes have to help remote users on who are dialing up there laptops while on trips to remote lands :-) The big problem is always talking the user through giving me their IP address... Click on the Konsole icon.... no, the one with the shell on it... type su - ... no, that's "s" as in sam, "u" as in user, space, dash... yes, it needs the root password... no not your password... ok now type exactly the letters I tell you... ifconfig |grep "inet "addr".... no that's "i" as in Internet, "f" as in frank... You get my point. So I'm trying to write a script that will do everything except type their own password for them. It currently looks as follows: #!/bin/bash xterm -fg black -bg white -e /usr/bin/sudo /sbin/ifconfig |grep "inet addr" When I run this script, up pops a window that is asking for the user's password, just like it's supposed to. Unfortunately the window doesn't stay open, it closes as soon as grep ceases printing the results of the grep. Does anyone know what to do to make the xterm stay open? TIA ---------------------------------------------------- Jonathan Wilson System Administrator Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com