Originally Posted by iTom
By the looks of the first post he is wanting to do it on a Windows server, neither of these I think would work as their designed for Linux.
The OP mentioned that the script should run on a Linux server and MySQL is running on a Windows server.
The script I've linked to can be used in this scenario, it's a rather simple shell script that should run on any Linux server without any problems. Whether the MySQL server is a Linux or a Windows machine shouldn't make a difference.