<html>
<body>
<font face="Times New Roman, Times" size=5>Sorry to ask this again but, I
just can't grasp system() and get it to work....<br><br>
&nbsp;I have written a program named gettables.pl which reads all the
tables in a database and prints them out.&nbsp;&nbsp; The program is run
with this line:<br><br>
</font><font size=4 color="#0000FF">gettables.pl mysql <i>database</i>
<i>user</i> <i>password<br><br>
</i></font><font face="Times New Roman, Times" size=5>It in turn prints
out a list of the tables in the database- <br>
EXAMPLE:<br>
</font><font size=4 color="#0000FF"><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>products<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>inventory<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>porn_collection<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>accounts<br><br>
<br>
</font><font face="Times New Roman, Times" size=5>I need to execute this
FROM my web page generator program and&nbsp; have the print result
returned so I can make a table.<br><br>
I have tried:<br><br>
</font><font size=4 color="#0000FF"><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$dbtable
= `gettables.pl mysql database user password`;<br><br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>my
$command = &quot;gettables.pl mysql database user password4&quot;;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$dbtable =
`$command`;<br><br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$dbtable =
system(gettables.pl mysql database user password);<br><br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>my
$command = &quot;gettables.pl mysql database user password&quot;;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$dbtable =
system($command);<br><br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>@dbtable =
system(gettables.pl mysql database user password);<br><br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>my
$command = &quot;gettables.pl mysql database user password&quot;;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>@dbtable =
system($command);<br><br>
<br>
</font><font face="Times New Roman, Times" size=5>How can I do this
without having to write a file and read the results?<br><br>
</font></body>
</html>