|Think about Loose Coupling|
Setting a library path (export) to call SSHby Spaceman_Spiff65 (Initiate)
|on Jul 08, 2013 at 19:49 UTC||Need Help??|
Spaceman_Spiff65 has asked for the
wisdom of the Perl Monks concerning the following question:
By no means am I even remotely conversant in Perl, but we have several modules in our Unix (AIX) environment from a previous mad monk perl coder that our team needs to maintain. We are in the process of migrating from RSH to SSH as our means of remotely executing shell scripts on remote systems. The use of SSH in a shell script requires us to do an export: export LIBPATH=/opt/freeware/lib:/opt/freeware/64/lib:/usr/lib:$LIBPATH How can I replicate this in a Perl script? Currently our Perl script calls rsh via the following: `rsh remotesys -l uid /apps/lbin/PkDataMove.sh prod`; Any thoughts or suggestions would be appreciated!