I am Calling a shell script from mysql UDF function sys_exec :
SET cmd = CONCAT('cd /home/enablement;sh execute.sh ', CONCAT('1', ' ', '1', ' ', '1'));
SET result = sys_exec(cmd);
SELECT result FROM DUAL;
But I am getting an error code 32512 in result which is probably of two different users one for mysql and other for linux (for execute.sh script) , can you please guide me the way how can I be able to make mysql user to access execute.sh file while invoking sys_exec function.
Thanks In Adv
SET @cmd:= CONCAT('cd /home/enablement;sh execute.sh ', CONCAT('1', ' ', '1', ' ', '1'));