[lazarus] OT: CGI for apache with free pascal

Michael Van Canneyt michael.vancanneyt at wisa.be
Thu May 27 07:51:36 EDT 1999




On Wed, 26 May 1999, Michael A. Hess wrote:

> Michael Van Canneyt wrote:
> > 
> > !! NO WAY under linux !!
> > (lest processing the /proc directory tree)
> 
> Do you have a clue as to how this COULD be done? I've been looking at
> the /proc data to determine if the required info is there but I don't
> see anything. Is this possible at all?

The file /proc/PID/exe is a symbolic link to the actual program.
How you can extract the filename of this is another matter.
(replace PID by the process ID of the program)

>  
> > paramstr(0) will ONLY give the ACTUAL command-line command:
> >   lazaruside file.pp
> > will return lazaruside, EVEN if /usr/X11/bin/lazaruside was executed.
> 
> Just to clarify this if the command you key in was
> 
> /usr/X11/bin/lazaruside
> 
> then that is what will be in paramstr(0)
> 
> but if it you key lazaruside and it finds it in the search path
> 
> /usr/X11/bin/lazaruside
> 
> then yes the only thing in paramstr(0) is
> 
> lazaruside
> 
> Basically what you type on the commandline is what ends up in
> paramstr(0).

This is correct, yes. but only the FIRST thing you typed.

Michael.






More information about the Lazarus mailing list