Put a Mac to Sleep via the Command Line
osascript -e 'tell application "System Events" to sleep'
* * *
osascript -e 'tell application "System Events" to sleep'
* * *
« Grab Email Addresses from a Text File Using Grep » Getting around setTimeout global scope in javascript
Or, see a list of articles