Newly installed Solaris 10 on Virtualbox. There are some ways to install AMP on it like using www.blastwave.org's packages or using CoolStack packages. I chose the latter and downloaded files from CoolTools website at sunsource.net. Following the instructions it installed files into /opt/coolstack folder. Apache and php workes like a charm without any configuration or edit. But for mysql there is some little config to do. After installation user and group mysql should be added. Because there comes no database at first, mysql_install_db script should be run. Also my.cnf file need to be added to /opt/coolstack/mysql_32bit/ folder. After those running mysql.server start command initiates the mysql daemon.
I was trying to use sub (or gsub) function in awk to delete an \r from the end of line. For that purpose I used dum=sub(/\r/,"",$0) and thought that the variable "dum" will be filled with the changed value of $0. But I realised that sub function only make the change and returns 0,1 accordingly. So I wrote like this sub(/r/,"") ; x=$0;
Yorumlar