User 72ba891f70
01-06-2007 14:04:34
Help me please.
Where program jcman or jcsearch search cofiguration file ".jchem" ?
I want to search the substructure in MySQL base. I write in CGI-program (on Perl) the string:
system('/room/ChemAxon/JChem/bin/jcsearch -q "C(O)NC" -o /home/hit.smi DB:conp_str');
When the CGI start from comand line (Red Hat Enterprise Linux 4) the result file "hit.smi" is created and had 27 items (lines). All right.
When the CGI start from Web-page the result file hit.smi is created too, but it had not items. In error_log is the string:
More properties needed to make the connection.
I thing that this problem is due to USER's name. The path of cofiguration file ".jchem" is "/root/.chemaxon/.jchem". When program start from comand line, the USER is "root" and program seek file ".jchem" in "/root/" folder. When one start from Web-page, the USER is "nobody" and it seek in "/nobody/" folder, but can not find such folder (and configuration file). Therefor can not make connection with base.
Please suggest me the solution this problem. How change the path for ".jchem"?
Where program jcman or jcsearch search cofiguration file ".jchem" ?
I want to search the substructure in MySQL base. I write in CGI-program (on Perl) the string:
system('/room/ChemAxon/JChem/bin/jcsearch -q "C(O)NC" -o /home/hit.smi DB:conp_str');
When the CGI start from comand line (Red Hat Enterprise Linux 4) the result file "hit.smi" is created and had 27 items (lines). All right.
When the CGI start from Web-page the result file hit.smi is created too, but it had not items. In error_log is the string:
More properties needed to make the connection.
I thing that this problem is due to USER's name. The path of cofiguration file ".jchem" is "/root/.chemaxon/.jchem". When program start from comand line, the USER is "root" and program seek file ".jchem" in "/root/" folder. When one start from Web-page, the USER is "nobody" and it seek in "/nobody/" folder, but can not find such folder (and configuration file). Therefor can not make connection with base.
Please suggest me the solution this problem. How change the path for ".jchem"?