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: 4746389"] I put my Perl script in a unix shell now. The filename is abc.pl If I run "perl abc.pl", it works perfect but if I run "perl /abs-path/abc.pl", it gave me the error file now found in abc.pl. I opened several files in abc.pl. I think the perl script abc.pl use the path veriable on the shell not where abc.pl sites. Because I want my script to be portable, so I don't wnat to change the relative path within abc.pl, so how do I tell abc.pl to set default path? Anoher problem is that I run several scripts at once, and I put them in a ..sh file as perl 111.pl perl 222.pl perl 333.pl and I made the .sh file chmod 777, but when I type the file name RUN.sh, it still tells me "command not found". I am not sure it is a shell problem or I set up something wrong here. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
Top