Hi Ruby Forum...

I have a script that I run every minute in cron to gather SNMP
statistics and put them in a DB.

Since CRON only goes down to one minute intervals and I'd rather not
change my code to loop so that I can poll every 15 seconds, is there a
way to run a ruby file from the command line and tell it to run the file
4 times?

something like this (which I know doesn't work)

do /usr/bin/SnmpPoll.rb * (4)

Thanks

jackster

http://jackster.mobi
-- 
Posted via http://www.ruby-forum.com/.