Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call existing perl script into new script in different folder?

Status
Not open for further replies.

ability1

Programmer
Dec 24, 2002
23
0
0
US
I have a rather lengthy script (wwregistry.pl) that resides in the cgi-bin. It points to flat files in relative terms. (ie require "folder/file.cfg";)

I am going to use the same script but outside the cgi-bin. I've already made all the arrangements with .htaccess to execute outside the cgi-bin.

Is there a way to write a simple script that calls wwregistry.pl, executes it as if I were executing it from the cgi-bin?

 
Anybody got a suggestion? I could use your wisdom :)
 
Not really.

But you can include wwregistry.pl as a library and call functions in it directly from your CGI.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top