I want to retrieve some info from development.log file using
plugins.
In early stage i decided to use Regular Expression to retrieve required
data but i want to use plugin for that.
So can anyone tell me which plugins are available for analyzing(reading)
“development.log” file .
problem - 2)
how i execute the ruby program on unix’s cron job utility.?
I want to retrieve some info from development.log file using
plugins.
In early stage i decided to use Regular Expression to retrieve required
data but i want to use plugin for that.
So can anyone tell me which plugins are available for analyzing(reading)
“development.log” file .
What format is that?
problem - 2)
how i execute the ruby program on unix’s cron job utility.?
how i execute the ruby program on unix’s cron job utility.?
If you’re working with rails, you could write a rake task and call that from
cron or just run a ruby script directly like:
/usr/bin/ruby /path/to/your/ruby/script.rb
If you’re running a Rake task, most of these will expect the root of
your
Rails project to be the current directory. Unless running in development
you will also want to specify the environment:
m h * * * (cd /path/to/project; RAILS_ENV=production /usr/bin/rake
my:task)
–
Lars H.
“If anyone disagrees with anything I say, I am quite prepared not only
to
retract it, but also to deny under oath that I ever said it.” -Tom
Lehrer
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.