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="Josef Möllers, post: 4746394"] That's what the notions of "current working directory" and "relative path" do. You either specify an absolute path or your specify a relative path and the system sort-of prepends the current working directory. As for finding executables: add their absolute path(s) to the PATH environment variable. As for finding files: either put them into a well-known location (/lib, /usr/lib, $HOME/lib, ...) or provide the absolute path of their location into an environment variable (MY_DATAFILE_PATH=/perlfiles) or into a configuration file ($HOME/.myperlconfig) or whatever, but the system is pretty helpless in guessing where your files are. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
Top