Tag Archives: linux

Automating “yes” input for a script or binary on linux.

Use the linux utility yes. yes <input> | /path/to/script This will continually input the <input< word into the /path/to/script file. Its useful for automating input into a script or binary and can be used to automate any type of input – don’t let the program’s name fool you.

Posted in Programming, Ubuntu Linux, Webhosting | Tagged | Leave a comment

Backup or restore MySQL database via SSH or terminal.

Here is the command to use to actually backup the database on the command line: mysqldump –add-drop-table -u user -p database > database.sql When you have the backup, use this command to restore it: mysql -u user -p database < database.sql You need to make the appropriate substitutions obviously. Hope this is brief enough!

Posted in Programming, Webhosting | Also tagged , , | Leave a comment

How to turn off desktop icons in ubuntu linux for xwinwrap.

If you ever feel inclined to turn of your desktop icons by disabling nautilus from painting your desktop you can use the following command: gconftool-2 –type bool –set /apps/nautilus/preferences/show_desktop false You can reverse the change with: gconftool-2 –type bool –set /apps/nautilus/preferences/show_desktop true This can be useful if you want to use xwinwrap to paint your [...]

Posted in Ubuntu Linux | Also tagged | Leave a comment