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!
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:
Or, to call the script from anywhere:
thanks for your reply. The problem is that the first script is on python, so I canĀ“t do what you suggest.
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..