How best to include paths to ruby 1.8.7?

D

Dave Lilley

I have a set of scripts working on my development linux PC.
I've moved these scripts to another linux PC - This will be a production
machine.

This is the first time I've done this at all!

Looking for direction on how to and where to put my code on this PC so
that...

users with restricted rights (no sudo access) can execute these
programs.

I currently have tried the following locations with little success.

/usr/local/lib/site_ruby/1.8/myfiles

/usr/local/lib/site_ruby/1.8/i486-linux/myfiles

errors i get refer to not being able....
1. Not locate gems I actually do have installed not being found
2. other scripts residing in the myfiles directory not being found

where should i put my files so that they are safe from possible upgrades
to ruby.
Users with restricted rights can run these files but have them unable to
read the files.

I know I am asking 2 different questions here.

1 relates to ruby and the paths it uses to find gems etc.

2 relates to user and group access rights.

I don't really know if what I'm doing is the correct way or not.

anyone able to help?

dave.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top