On Mac OS X, runs System Profiler Report and e-mails it to specified address.

system_profiler | mail -s "$HOSTNAME System Profiler Report" user@domain.com
Replace "user@domain.com" with the target e-mail address. Thanks to alediaz for "$HOSTNAME" which is very useful when running the command with Apple Remote Desktop to multiple machines simultaneously.

By: monkeymac
2009-08-11 20:16:37

What Others Think

This is an excellent tip. Previous I had a script which would FTP the report over. For me, this is ideal. Thank you. Jay
valambhiajn · 672 weeks ago
Thanks, it's been very handy for me. I'd like to see an option of this that dynamically puts the machine's hostname (or sharing name) in the Subject - but I don't know how to do that.
monkeymac · 672 weeks ago
monkeymac>> This worked for me: system_profiler | mail -s "$HOSTNAME System Profiler Report" user@domain.com
alediaz · 672 weeks ago
That's awesome - I shall edit my command! Thanks!
monkeymac · 672 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: