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="Ben Morrow, post: 4746396"] You want to put chdir '/perlfiles'; or so at the start of your Perl script. Unlike DOS, Unix shells do not by default (nowadays) have '.' (the current working directory) in your PATH. This means that to run RUN1.sh you need to invoke it as './RUN1.sh'. Or you can find what your PATH is (echo $PATH) and copy RUN1.sh into one of those directories. Also, [OT], you don't really want to be stuffing things into / like that... at least put them under /usr/local. And it is not conventional under Unix to use 'file extensions' for executable script files. Ben [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
Top