Monthly Archives: December 2010
Execute a command via SSH and terminate the connection without waiting for the command to finish
A few days ago I was trying to update the script used to build the application on which I’m working. Together with the build I also wanted to integrate the script so to release the app on test boxes and restart the JBoss instance.
While the stop was working as a piece of cake, the restart of the server was keeping my ssh connection alive, and causing the release script to not finish.
After a bit of googling that the ssh syntax you’ll have to use if you want to send a command via ssh, redirect std out/err, and close the ssh connection:
ssh username@host “nohup command_to_execute > /dev/null 2>&1 > /../log_folder/log_file &”
Hope this will help someone of you out there
-Sieze
Meaning of load average of the top Linux command
Meaning of “load average” of the top Linux command
The “load average” information given by the top command is of fundamental importance. But how to correctly understand the meaning of it? Which value are bad? Which good?
This article is just simply brilliant in explaining how to interpret this value: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
Enjoy!
-Sieze