Posts

Showing posts with the label command line

Getting a list of databases from PostgreSQL at the command line

psql -Alxt|grep 'Name'|cut -d '|' -f 2

Command line restart of dsmcad service on OS X

From here To start the client acceptor daemon use the following command: sudo /sbin/SystemStarter start dsmcad To restart the client acceptor daemon use the following command: sudo /sbin/SystemStarter restart dsmcad To stop the client acceptor daemon use the following command: sudo /sbin/SystemStarter stop dsmcad

Remote Management OS X command line

Via: http://support.apple.com/kb/HT2370# To enable Remote Managment: /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate To disable Remote Management: /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart - deactivate