Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

sys_exec () can run a python program (no replies)

$
0
0
hello,

for test reasons, I have a python program who writes to a file. txt date and the current time.


select sys_exec('python /var/test/script/aa.py');

I gave chown mysql:mysql aa.py and chmod 777 aa.py

result is:
+-------------------------------------------+
| sys_exec('python /var/test/script/aa.py') |
+-------------------------------------------+
| 0 |
+-------------------------------------------+
1 row in set (0.23 sec)



but nothing appears in the text file

will you give me some suggestions please?

thanks

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>