I need to get a user password in a bash shell script that needs to be passed
to a password prompt (think rsync to a remote host). How does one do this ?

I know I can just spawn the rsync process inside an xterm (xterm -e) but
would like the shell script to be more KDE friendly.