problem accesing perl script
0
0
Entering edit mode
2.0 years ago
gubrins ▴ 350

Heys,

I am trying to run an script which needs to run a second perl script and the error I get is this one:

Can't open perl script "/test_tpf_sanity.pl": No such file or directory

The file test_tpf_sanity.pl is in the same directory where I am and where the first script is being running.

If I do perl test_tpf_sanity.pl it works.

I am not sure what is going on, any help?

Thanks in advance!

perl • 933 views
ADD COMMENT
0
Entering edit mode

Keep using perl test_tpf_sanity.pl, or, if the script is not in the PATH, you have to add the path to the call.

If you are in the same folder as the script:

./test_tpf_sanity.pl

Or, to call the script from anywhere:

/path/to/script/test_tpf_sanity.pl
ADD REPLY
0
Entering edit mode

thanks for your reply. The problem is that the first script is on python, so I canĀ“t do what you suggest.

ADD REPLY
0
Entering edit mode

Is the Python code that is calling the perl script accessible to you? You may be able to edit the path to better call it. Or edit the way the python code is calling perl? It may take some checking of the current working directory right before you call it, etc..

ADD REPLY

Login before adding your answer.

Traffic: 1989 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6