Saturday, September 18, 2010

Graceful OSX Shutdown from command line

If you use shutdown -h now running GUI programs will be forced to close. To tell them to close use
osascript -e 'tell application "System Events"' -e 'shut down' -e 'end tell'
Credit :

No comments:

Useful commands for observe running JVM process

$ jcmd List running processes $ jinfo  Get details of a process $ jps -lvm List running processes with params