I\'m looking to be able to run a single query on a remote server in a scripted task.
For example, intuitively, I would imagine it would go something like:
If it's a query you run often, you can store it in a file. Then any time you want to run it:
mysql < thefile
(with all the login and database flags of course)