Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: fileparse(): need a valid pathname

by sundialsvc4 (Abbot)
on Jul 08, 2018 at 01:02 UTC ( #1218094=note: print w/replies, xml ) Need Help??


in reply to Re: fileparse(): need a valid pathname
in thread fileparse(): need a valid pathname

To clarify a “trampoline” is the initial CGI script that is actually invoked by the web server.   (It might not be in Perl, but simply be a shell-script.)   Its purpose is to set up the environment expected by the “actual” script, then pass control to it via exec, which replaces the trampoline with the application as though the web-server had actually started it.   (The application-start module should be an executable Unix/Linux file which begins with “shebang” say:   #!/usr/bin/perl)

Many variations exist, including trampolines that take the name of the script as their (only) command-line parameter.   Naturally, the trampoline will need to set the value of filename-referencing environment variables to point to the target not the trampoline.

This is a very effective trick if you are dealing with an old application or, many applications which have a large number of environmental dependencies.   Sometimes, it is less-invasive to create the environment that they expect, by means of a short trampoline, than to re-tool the application(s) to no longer expect them.   The overhead contributed by the trampoline step is negligible.

  • Comment on Re^2: fileparse(): need a valid pathname

Replies are listed 'Best First'.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1218094]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2019-12-12 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?