Is it possible write, publish and edit posts with WordPress from console aka terminal?

Though I have not used these, I’m sure one of them will help out.

http://scott.yang.id.au/2002/12/mtsendpy/

http://code.google.com/p/wordpress-library/ (think download is an external link)

http://www.doughellmann.com/PyMOTW/xmlrpclib/