textutil -convert html ~/conv.shYou should now have a file at ~/conv.html that can be viewed, so let’s open it:
open ~/conv.htmlSo far so good. But we need to move some of these, so we’ll use the -output option. For example, let’s look at moving our .gitconfig file to /WebData and calling it gitconfig.html instead of .gitconfig:
textutil -convert html ~/.gitconfig -output /WebData/gitconfig.htmlNext, we actually need to merge some files into one. We’ll use the -cat option followed by the output type for that, with all of the inputs at the end of the command, as follows (where parsedlogs1.doc parsedlogs2.html are merged into a new file called publishedlogs.html in the /WebData directory):
textutil -cat html -output /WebData/publishedlogs.html parsedlogs1.doc parsedlogs2.htmlUsing curl and other tools we can then access this data, although in most cases it will need to be pretty secure. Protect the target directory with a .htaccess (Realms are basically still an option via WebDAV in the Server app in Mountain Lion) and you will be able to access the output of this data via links in the Wiki service or simply as a shared directory using the WebDAV Wiki integration.
krypted August 3rd, 2012