i discovered a problem when cron tries to run a ruby script which uses some library.
require "library"
#do some stuff
it complains about not being able to find library.rb
so i was wondering if i could do something like require “/var/dir/library.rb”
Yes, you can do that. You could also simply add the directory where your files are to the list of paths in
$:, either with the-Iargument, the RUBYLIB environment variable or just by doing$: << 'some_directory'.