<?xml version="1.0" encoding="windows-1252"?>
<node id="34398" title="Calling a method inside CGI script using system calls" created="2000-09-28 14:50:37" updated="2005-08-15 08:21:53">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
When I call the run_actuals method in Unix Server. It ran a file
named web.template and output the result to the file &lt;tt&gt;web.template.output&lt;/tt&gt;. 
This is exactly what i typed in unix server:
&lt;code&gt;
( /GPP/bin/run_actuals web.template &amp; ) 
&lt;/code&gt;
in case you wanted to know, the file &lt;tt&gt;web.template&lt;/tt&gt; is in cgi-bin.
It works perfect. But I could not run the same method from inside my cgi
script. The command I gave to call and run the file is this: 
&lt;code&gt;
system("/GPP/bin/run_actuals /GPP/web/cgi-bin/web.template");
&lt;/code&gt; 
I moved the web.template file away from cgi-bin and tried to run it
again. but I still could run the method inside my CGI script. 
&lt;br&gt;
I don't understand why I can run the same method manually on the Unix Server,
but I cannot run it from my CGI script...
&lt;br&gt;
Thanks in advance, if you know the answer </field>
<field name="parent_node">
1830</field>
<field name="reputation">
2</field>
</data>
</node>
