[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: what is the problem?



On Fri, Sep 26, 2003 at 04:37:05PM -0700, Yang Xiaolin wrote:
> Hi,all
> 
> I used the following sentence in a cgi script written by Perl. 
> system("mod all.top");
> The error information is:
> 
> sys_____214E> File probably does not exist.
>               Perhaps you have to increase swap space size.
>               Filename:  1064585746
>               Command :  uname -rnsm > 1064585746
> recover____E> ERROR_STATUS >= STOP_ON_ERROR:        1       1
> 
> Dynamically allocated memory at          finish [B,kB,MB]:            0       0.000     0.000
> Starting time                                            : 2003/09/26  22:15:45.975
> Closing time                                             : 2003/09/26  22:15:46.135
> Total CPU time [seconds]                                 :       0.07
> 
> 
> The command "mod all.top" can run smoothly as command line or the script
> was not run through web.
> How can I resolve this problem?

The problem is that Modeller calls the 'uname' program in order to
determine your machine's hostname and other particulars, and writes this
information into a temporary file (called 1064585746, in your case). This
will fail if you do not have write access to the directory Modeller is
running in (which is likely if you run via a CGI script, which is
probably running as user 'nobody' or similar). Either make sure you put
a suitable 'cd' command into your script before starting up Modeller, or
ensure that the working directory is writeable by the CGI user. At any
rate, if Modeller cannot create a temporary file, it won't be able to
create any output files either!

	Ben Webb, Modeller Caretaker