Many people(including me) met the infamous "undefined reference" error during installing OpenCV, such as ../../lib/libopencv_highgui.so.2.4.1: undefined reference to `avpriv_vorbis_parse_extradata’../../lib/libopencv_highgui.so.2.
tail -f *: to see the latest logs acpid Log of the advanced configuration and power interface event daemon (acpid), a daemon to notify user-space programs of ACPI events. acpid will log all of it's activities, as well as the STDOUT and STDERR of any
方法一: export http_proxy="proxy:portnum" 方法二:(http://www.fedoraforum.org/forum/showthread.php?t=742) create the following files in /etc/profile.d, and then this will work in *any* shell for *any*
[原文]:http://mydebian.blogdns.org/?p=144 How to remove space or newline characters from a string. Well, let me first explain that in Bash a set of words separated by one or more space characters is a very common thing
當一個含有變數a的命令儲存在某個變數b中時, 利用$($b)時有可能會報錯。如下面的代碼,有時可以成功執行,有時會發生“ipcs|grep xxx can not be found"的錯誤。 IFS=" " if isLinux then IPCSCMD="ipcs" else IPCSCMD="ipcs|grep $LOGNAME" fi for Eachline in $($IPCSCMD) do IFS=
在一個函數(function)中,如果不希望局部變數影響到全域變數或環境變數,可以用typeset來定義。 對於多個參數的函數或指令碼,對多個輸入參數的處理有兩種辦法: 一是利用如下方式: while (($# != 0)) do # process $1 shift done 另一種方法是利用如下方式: while getopts :A:B:c:d:e:E:C:i:G:L:M:R:hD:V OPT; do case
Find CPU Speed and Memory Size on Solaris As I’m writing my thesis I’m running tests on an old SMP Solaris machine. Obviously, I need to provide the specs of this machine in the paper so that the readers can see my results in context (ie why