in reply to Re: Clarifikation of Newbie question
in thread Clarifikation of Newbie question

I know how to list the the content of 1.pl and I know how to list the content of filename.txt (using the querystring).

The problem is, I need the result of the execution of those two files combined.
http://www.someserver.com/cgi-bin/1.pl?filename.txt
The above line generates a menusystem, using data from filename.txt and putting it into a menusystem 1.pl
So what I need is the result of the execution put into another file.
  • Comment on RE: Re: Clarifikation of Newbie question

Replies are listed 'Best First'.
RE: RE: Re: Clarifikation of Newbie question
by Malkavian (Friar) on Oct 25, 2000 at 20:07 UTC
    Ok, I apologise if I'm being overly dense, but I don't get what you're actually asking.
    Executing the CGI as above would enable 1.pl to grab the filename, and use it to it's own nefarious ends.
    If this file contains data for a menuing system, then the rest is merely generic programming.
    If you need the data from the execution of 1.pl placed in another file, you can use string manipulation to add a prefix/other suffix to use filenam.txt as your root, so you know what the final file relates to.
    If it's just a generic file, think of a name and open(F,">/blah/otherfile");print F "other data";close F;
    Again, apologies if I've missed the point entirely, but this is simply where reading your specification of the problem leads my thinking.

    Malk
    *I lost my .sig. Do you have a spare?*