Hello.
OS: linux (XUbuntu)
I'm running an Apacge2 server. Some Web Pages calls a CGI, done with Lazarus.
When the CGI runs it is possible to read a TextFile, but I cannot find the way to write any file or execute another program.
I've tested for files:
1) AssignFile; rewrite; writeln; CloseFile
2) TFileStream; TMemoryStream;
And to call another program to run: tprocess an the rest of possibilities shown in 'Executing External Programs' from free pascal web page.
But nothing works...
When I run the program directly (not as CGI called by Apache2) everything works fine...
Maybe it's because of pipes beavior (Does Apache2 call with pipes?).
Please, could anyone help me ??
Thanks