Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have added to my ubuntu 9.04 applications/system tools menu the following command:
gnome-terminal --command="pwgen -s"
This works fine in ubuntu 8.04, but in 9.04 the terminal windows flashes open and then closes instantly, without my being able to read the generated passwords and then close it myself.
Is this a bug in 9.04 or am I doing something wrong.
BTW if I type into a open terminal window in 9.04:
pwgen -s
Then passwords are generated, and I can choose one and then close the terminal.
Last edited by rjb356; 06-09-2009 at 12:00 AM.
Reason: To add information
I tried your suggestions, using the following in the command box:
gnome-terminal --command="pwgen -s"
and
pwgen -s
Both cause the same response of flashing open and closing the terminal window, not allowing me to read what is in the terminal window.
When the "application in terminal' is used, then the "pwgen -s" command is all that is necessary (nice to know).
ozminh:
I tried "man read" and I got the response "no manual entry for read".
When I googled it, I got what appears to be info about a script command (I'm relatively new to Ubuntu and don't know much about scripts, but it seems they are much like the old DOS batch files). I was attempting to do this by placing a command in the edit menus section - command box.
So at this point I'm still not understanding why, what works in ubuntu 8.04, seems to not work the same in version 9.04.
The link you suggested had a workable solution for me.
The answer was to not use gnome-terminal (which seems to have a bug in ubuntu 9.04) and use xterm. Creating a "shortcut" in the edit menus as follows worked:
xterm -hold -e pwgen -s
My only problem with this was the font size in xterm was too small for my poor eyesight, so I check out the man pages for xterm (there is over 4000 lines in the man pages - an amazing array of commandline options) and found, after some trial and error, that the following gave me a much larger and readable font that satisfied me:
xterm -hold -fa -fs -e pwgen -s
Again, thanks for your help. Though what I was attempting to create was a bit silly since I could have just opened a gnome-terminal window and type:
pwgen -s
and gotten the same result. But the truth is I was using this simple question to learn more about the commandline, terminal, linux etc. as I have been switching my computers to linux due to my unhappiness with both Windows and Microsoft Corporation.
I am liking linux, but there does seem to less polished software available, and I'm hoping in the future more gui frontends will be developed so that the more complex commandline usage could be avoided.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.