MySQL Forums
Forum List  »  UDF

How can I execute a binary from a UDF?
Posted by: Alan Honeyman
Date: September 26, 2012 11:12PM

I've installed lib_mysqludf_sys.dll and I can get it to execute simple commands:

do sys_exec('dir >c:\\out.txt);

but as soon as I try to execute a binary, it either aborts the mysql server or stalls. I tried executing a batch file:

do sys_exec('h:\test.bat');

and that works but if that batch file contains a command to execute a binary, that command is not executed and the execution of the batch file ceases. If, from windows, I double-click the batch file, it executes perfectly and the binary starts up.

Has anyone got this to work?

Options: ReplyQuote


Subject
Views
Written By
Posted
How can I execute a binary from a UDF?
3422
September 26, 2012 11:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.