>>8
Good, you were able to google it yourself. Now read the results
Name:
Anonymous2009-09-30 17:38
Actually, I learned of a program for doing just that recently.
It's a bit dependency-heavy, but it looks like it could be used in scripts, and sounds like just what the OP is asking for.
There was a buffer overflow on bugtraq, but I think it it's fixed in the newest version.
Name:
Anonymous2009-09-30 17:53
>>10
Indeed. I know just the program of which you are speaking.