Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Public Interest, post: 4746459"] You want to put Another problem is Perl Script under Shell and under CGI use different dir systems. How can I make sure that both will work properly? / under shell means root dir / under cgi or http means [URL]http://domain.com/[/URL] sometimes. cgi use a cgi-bin dir which is virtual so domain.com/cgi-bin and domain.com/htmlfiles are not under the same root but rather /www/html/htmlfiles/ and www/cgi-bin. the only thing that works in both is ./ ../ What I think of is still use relative path for portabilty of scripts under shell and web server. I want to add something to change pwd enviroment, but not sure if it is possible. PWD is not accessable under CGI. CGI has an env as script_path or scrip_url. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
Top