Running perl script from linux rescue

How can I run a perl script from a linux rescue environment that doesn't inherently include the perl module?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Obviously if the script uses perl module, it is not going to run.  You need to bring it up completely before running your script.  And after brining it up, you will have to either install the required module or do modification to the script.

It would be a little too  difficult to make it run when the system is being rescued.  When the system is being rescued, you are lucky if the very basic commands run.
johncosentinoAuthor Commented:
Yeah, I was hoping to get some insight on the most efficient way to get the perl module running in the rescue environment.

Can it be added to the rescue boot cd?  Is there a way of adding it while in the rescue environment?
Does the system actually have those modules somewhere in the hard drive?

If so, it should not be terribly hard to do it.  If the system does not have it, make sure you put it on the hard drive, don't use the RAM and the rescue folder.

So if your system is mounted at /etc/sysimage, then your actual hard drive's /etc/ has the path.
DO NOT copy anything in /etc/ as it is volatile and will screw you up.

However, if you do

chroot /etc/sysimage, in the rescue, your can use anything in the system with the same paths.  

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.