Fix: Try running with sudo.
For example: sudo nm-tool | grep DNS
# If is there another instance already running:
# display the message “Another instance is already running, quitting.”, and return -1 error code.
me = SingleInstance()
That's a guide to making WinSCP send a dummy command every 30 seconds to keep your connection alive. It's way better than constantly having to type in your password.
20 * * * * sh script.sh
That's wrong. That only runs it once every hour 20 minutes into the hour. For example, "20,40 * * * * sh bash.sh" would run it twice - 20 and 40 minutes into the hour.
To run the script every 20 minutes like I was expecting:
*/20 * * * * sh script.sh
I ended up with the following code at the top of the page (since I'm not using a layout):
$assetsScriptUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('zii.widgets.assets'));
Things I learned:
- It's easy to install PHP-APC for quick opcode caching, and it apparently serves the same purpose as memcached for a single server.
- Memcache and Memcached are two different libraries.
- There's a different (a small one) in speed between single and double quotes.
- Use phpass to store passwords.
sudo chown -R www-data:www-data /var/www
example: add style="width: 520px" to your div with class="span6"