Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Problem using rshell to start Perl application

by huck (Prior)
on May 17, 2018 at 19:51 UTC ( [id://1214790]=note: print w/replies, xml ) Need Help??


in reply to Problem using rshell to start Perl application

The problem is that the directory you are in when you call the perl from the MSDOS window is not the same directory you are in when it is called by the 3rd party ap so the library is not found. There are many ways to specify how to find a perl library. The one i use is to determine the directory that myperl-lib is in and specify it as i call perl. lets assume your libary is at C:\dir1\dir2\dir3\dir4\dirapp\myperl-lib. then

perl -I C:\dir1\dir2\dir3\dir4\dirapp C:\dir1\dir2\dir3\dir4\dirapp\pe +rlapp.pl
should do the trick.

Replies are listed 'Best First'.
Re^2: Problem using rshell to start Perl application
by merrymonk (Hermit) on May 17, 2018 at 21:16 UTC
    Thank you for that.
    I did try that and it works when I typed in the 'string' into an MSODS screen.
    Sadly it gave the error 2 when I rshelled the string from the 3rd part application.
    I did have to type in the path to the perl exe (ie c:/dir1/dir2/dir3/bin/perl.exe). However I do not think that was the problem as I recall I have to put perl.exe into the PATH so that 'perl' works.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214790]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found