watch "ps -xv | grep php"
Monday, December 24, 2012
Installing watch on mac
Download the “watch” command from Terminal.app
We are using “curl” a command line “broswer”
We are using “curl” a command line “broswer”
curl -O http://ktwit.net/code/watch-0.2-macosx/watch
Make “watch” executable
By doing this we tell Mac OS that this is a program that can run
By doing this we tell Mac OS that this is a program that can run
chmod +x watch
Test the program
Let’s make sure everything is in working order.
Let’s make sure everything is in working order.
./watch
Install “watch”
Optional: By following this next step we are placing watch into a system location that will allow you to run it from any location in the Terminal (You will be prompted for your password)
Optional: By following this next step we are placing watch into a system location that will allow you to run it from any location in the Terminal (You will be prompted for your password)
sudo mv watch /usr/bin/
Trying to run pconnect via terminal on MAC
Warning: mysql_pconnect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)
can be fixed with:
can be fixed with:
sudo su
ln -s /Applications/xampp/xamppfiles/var/mysql/mysql.sock /tmp/mysql.sock
mkdir /var/mysql
ln -s /Applications/xampp/xamppfiles/var/mysql/mysql.sock /var/mysql/mysql.sock
Subscribe to:
Posts (Atom)