Tuesday, November 24, 2009

How to make a graphical input popup from shell scripts?

I use this method from a small script what asks for a samba password, and then mounts that share.

!/bin/bash
P=`zenity --entry --hide-text --text="Foo" --title="Bar"`
echo $PASS


You can use your $P for anything you want.

No comments: