[K12OSN] Scripting for Linux - RDesktop straight to an app
Rob Owens
rowens at ptd.net
Wed Apr 25 22:57:44 UTC 2007
I wonder if it would be possible to get the password from pam_mount.
Then, possibly, you might be able to rdesktop w/o even entering the
password.
I have no idea how it would be done, but maybe somebody smarter than me
could chime in with an idea.
-Rob
On Wed, Apr 25, 2007 at 12:02:20PM -0500, Peter Scheie wrote:
> You could write a wrapper script that prompts the user for the password,
> then passes that pw to the rdesktop command. I like using zenity for
> creating GUI prompts to users (see the man page). So you could do
> something like this:
>
> PW=`zenity --entry --hide-text --text="Please enter your password"`
> rdesktop -u $USER -p $PW 'server-name'
>
> Put the above lines into a file in. say, /usr/local/bin, make it executable
> (chmod +x script), and try it from a command line. If that works, then do
> as Roger suggested and create a launcher that calls the script.
>
> Petre
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
More information about the K12OSN
mailing list