I'm trying to execute a command from a perl script that is used to communicate with a mysql dbms. I'm trying to redirect the results from the console to a perl variable in order to process it.

The problem is that I read the documentation concerning the system() function but I never succeeded to redirect the output stream to this variable. I only get a sort of 'return code' in kind of integer of value 256.

efectively, but it was simplier to redirect the output of a code that is already existing instead creating a new script that is doing exactly the same thing, but...

I tried, it is working with all the XP console dos-like commands but it seems that apache doesn't want to execute a java code outside of the space reserved for the scripts to be executed, but now this is no more a perl issue but an apache/java issue, thanks anyway for your help, ...