You may have been bitten by this.
Archive of posts filed under the tips category.
Running local script remotely (with arguments)
Some ways to remotely run a local script.
Poor man’s HTTP VPN
Send IP traffic over HTTP.
“In-place” editing of files
Temporary files don't bite, so just use them.
DNSSEC verification with dig
Perform DNSSEC verification from the command line.