usr (685)


How do I send a file as an email attachment using Linux command line?

How do I send a file as an email attachment using Linux command line?

I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to.sql files and packages them together as a compressed.tar file. The next step…


osx - Bash prompt in OS X terminal broken

I am using bash in os X Terminal app, and my custom $PS1 breaks when I scroll through my history. PS1="${BLUE}\u${CYAN}@${RED}\h${BLUE}\w\n\[${red}\$${NC}\]" also tried PS1="${BLUE}\u${CYAN}@${R…


Perl or Python script to remove user from group

I am putting together a Samba-based server as a Primary Domain Controller, and ran into a cute little problem that should have been solved many times over. But a number of searches did not yield a r…


What does the “no version information available” error from linux dynamic linker mean?

In our product we ship some linux binaries that dynamically link to system libraries like "libpam". On some customer systems we get the following error on stderr when the program runs:./authpam:/li…



Unix: Getting Export PATH to “Stick”

When setting the export path in Unix, example: export PATH=$PATH: $EC2_HOME/bin If I quit terminal and open it back up to continue working, I have to go through all the steps again, setting up the pa…


Any way to “reboot” the JVM?

Is there any way to reboot the JVM? As in don't actually exit, but close and reload all classes, and run main from the top?…


linux - ld cannot find an existing library

I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar pro…


Difference between classpath and endorsed directory

Does anyone know what the difference is between adding an appropriate JAR-file(eg. Apache XALAN) to a JRE's endorsed directory and adding it to the application's classpath? Is it possible to take a…


macos - How to set my default shell on Mac?

I do not like to retype fish every time I start terminal. I want fish on by default. How can I set fish shell as my default shell on a Mac?…


How to fix error caused by libmysqlclient.15.dylib not being loaded?

I've upgraded to Rails 2.2.2 and installed the MySQL 2.7 gem and am seeing this error when I try to run a migration or start the server: dlopen(/Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle,…




bin not error local file directory mac install found such