Monoport from the shell 18 Aug 2007


Sand Lately, I've found myself using monoport more and more as a convenient pastebin like tool. Working on the build of Mono, I was mainly sending patches, logs or errors for instance.

Today I ended up writing a small script, that I tend to find quite useful, to post to monoport from stdin.

You want to send a patch? Easy:
svn diff | monoport
In return, the script will print the link to the post to stdout.

A little editing by hand will let you change the default values for the name, the life time of the post, and the language it is written in. In any case, you can specify them like this:
cat foo.patch | monoport -n:jbevain -e:f -l:diff
Convenient. I'm pretty sure you can find jillions* of such scripts on the net, still, this one is mine.

Download from here: monoport script. And as you can see, it can even monoport itself. Amazing.

*: sir, it's not a number!