initial commit to seperate repo
This commit is contained in:
commit
1a020ca68b
1302 changed files with 201261 additions and 0 deletions
43
cache/posts/200805command-line-blog-posts.html
vendored
Normal file
43
cache/posts/200805command-line-blog-posts.html
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<html><body><h1>Command-Line blog posts</h1>
|
||||
|
||||
<p>So, it only seems fitting that I should talk about a command-line interface to posting on this blog. No, I do not mean using <a href="http://links.twibright.com"> links</a> or the like, but a way to post from the command line.</p>
|
||||
|
||||
<p>So, this post is being typed up in <a href="http://www.vim.org">vim</a> on my <a href="http://www.fedoraproject.org">Fedora 8</a> laptop. I will use this great little tool I found called <em>wppost</em> to post. <em>wwpost</em> is part of the <a href="http://www.perl.org">perl</a> module <a href="http://search.cpan.org/~leocharre/WordPress-Post-1.04">WordPress::Post</a>.</p>
|
||||
|
||||
<p>A brief summary of its commands are bellow:</p>
|
||||
|
||||
<pre><code> -c category, can be a list separated by commas, no spaces
|
||||
-t title
|
||||
-i description, main body of post, if it has a slash, it is interpreted as a file to slurp
|
||||
like a text or html file
|
||||
-D iso formatted date for post, can be left out
|
||||
-T if there are image attachments, place them as thumbnails only, with link, not just resized
|
||||
</code></pre>
|
||||
|
||||
<p>Some usage examples taken from the man page:</p>
|
||||
|
||||
<pre><code> Most basic of usage, (provided you have a ~/.wppost file)
|
||||
|
||||
wppost -t 'hi everyone' -i 'i just wanted to say hello'
|
||||
|
||||
If you want to specify two different categories:
|
||||
|
||||
wppost -t 'Another Apple' -i 'Apples are really great. I do love them so.' -c food,rant -D 20071231
|
||||
|
||||
If the body of the post is in a file
|
||||
|
||||
wppost -t 'title here' -i ./content.txt
|
||||
|
||||
If the content of the post is in a file and you want to use the file
|
||||
name as the title
|
||||
|
||||
wppost -i ./Title_Here.txt
|
||||
|
||||
If you want to have file attachments:
|
||||
|
||||
wppost -t 'recent photos' -i 'these are recent pictures i took' ./*jpg
|
||||
</code></pre>
|
||||
|
||||
<p>Pretty cool, huh? <img alt=":)" src="http://www.duckland.org/wp-includes/images/smilies/icon_smile.gif"></p>
|
||||
|
||||
<p>Peace out!</p></body></html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue