in reply to Re: Perl script runs fine if exec'd from the directory, but gives error if run outside the directory.
in thread Perl script runs fine if exec'd from the directory, but gives error if run outside the directory.
Hi,
Yes you are right. I'm using that file to read the username and password which unfortunately I cannot provide here. Also there's no $text variable in my script nor am I doing any substitution. Even if I embed the username and password in the script I still get the error.
What baffles me is the script works fine if I run it from the directory where its in. No errors whatsoever. Just when I run it with the path, the error comes up.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl script runs fine if exec'd from the directory, but gives error if run outside the directory.
by marto (Cardinal) on Oct 02, 2020 at 08:27 UTC | |
by pritesh_ugrankar (Monk) on Oct 02, 2020 at 19:30 UTC | |
by marto (Cardinal) on Oct 03, 2020 at 09:42 UTC | |
by GrandFather (Saint) on Oct 04, 2020 at 03:05 UTC | |
Re^3: Perl script runs fine if exec'd from the directory, but gives error if run outside the directory.
by GrandFather (Saint) on Oct 02, 2020 at 07:44 UTC |