Quick scrape of recent mobile home dir file sync for Mac Admins - tested with shell: bash, Mac OSX 10.5

tail -n 20 ~/Library/Logs/FileSyncAgent.log
tail would be considered dull, but pair this with being able to push out unix commands over ARD, and life gets easier. (Same can be said for my TimeMachine scrape command, http://xrl.us/begrzb)
Sample Output
[2009/02/18 23:48:00.697] Starting automatic sync of "HomeSync_Mirror".
[2009/02/18 23:48:20.743] EXCEPTION: Unable to mount remote home volume (Carbon error -2)
[2009/02/18 23:48:20.744] Peer "network" is unable to sync. Not enough peers will be available to continue syncing.
[2009/02/18 23:48:20.744] Aborting sync of "HomeSync_Mirror".
[2009/02/18 23:51:18.084] Sync of "HomeSync_Mirror" encountered errors. (Unable to mount remote home volume (Carbon error -2))
[2009/02/18 23:51:18.084] Last successful sync completed at 2009-02-17 19:38:19 -0500.
[2009/02/18 23:51:18.085] Finished sync of "HomeSync_Mirror".

-3
2009-02-19 05:05:21

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: