FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
automate entry in a terminal window

 
Post new topic   Reply to topic    BLAG Forum Index -> open discussion
View previous topic :: View next topic  
Author Message
hansencomputers
PostPosted: Sun Feb 24, 2008 2:47 pm    Post subject: automate entry in a terminal window Reply with quote

Hi,
Is it possible to automate entering some text in a terminal window?

I use encfs (encrypted file system) and when I want to mount it, I open a terminal window and have to type some text, and then the password.

I would like to automate that, like a desktop button that when clicked, simply asks for the password.

Is this possible?

Mike

iron_chef
PostPosted: Tue Feb 26, 2008 4:08 pm    Post subject: Reply with quote

Mike,
Look into zenity and gksu, they might be helpful. Zenity is an easy way to pop-up GUI dialog boxes, and gksu is a gui password prompt tool. You could write a simple shell script using them, and then create a .desktop file that launches the script. They both have man pages.

hansencomputers
PostPosted: Wed Feb 27, 2008 2:55 am    Post subject: Reply with quote

Thanks, I'll look into it.

The help is always appreciated.

Mike

Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> open discussion
Page 1 of 1

Protected by Anti-Spam ACP