in reply to Re: running process from CGI
in thread running process from CGI
it writes to the current directory. I tried using chdir() and it partially solves the problem. There are two scripts written in Fortran, which i call in succession. The first one writes output to the required directory when i use chdir() and the other one does not. The third party one needs user intervention at runtime. I tried writing the required values to a file and giving that as an input during invocation as follows../../progs/<programname> <options> <parameters>
where <param input file> contains different runtime parameters. This works like a charm when i use it on the command line and it does not work when i use it within backticks from the CGI script after issuing a chdir() to the required working directory.../../progs/<script> < <param input file>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: running process from CGI
by cdarke (Prior) on Apr 12, 2007 at 12:30 UTC | |
by kota_rocks (Initiate) on Apr 12, 2007 at 12:51 UTC | |
by cdarke (Prior) on Apr 12, 2007 at 12:56 UTC | |
by kota_rocks (Initiate) on Apr 12, 2007 at 13:47 UTC |