From: Matt Lawrence Date: 2013-01-22T10:29:10+09:00 Subject: Re: script gets executed multiple times by cron On Tue, 22 Jan 2013, Panagiotis Atmatzidis wrote: > Hello, > > I'm running this script https://gist.github.com/4591053 on a freebsd (default) crontab server using RVM + cron configuration. I don't know for which reason > but the program gets executed multiple times. I just want to execute the program one time every day at 4 a.m. (local time). > > Here's my freebsd user crontab: > --- > [atma@comodino ~/Code/rankclient]$ crontab -l > # atma's crontab! > > # Shell variables for crontab > SHELL=/usr/local/bin/bash > PATH=/home/atma/.rvm/gems/ruby-1.9.3-p194/bin:/home/atma/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/atma/.rvm/rubies/ruby-1.9.3-p194/bin:/home/atma/.rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/atma/bin:/home/atma/.rvm/bin > RUBYLIB=/home/atma/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/ > GEM_HOME=/home/atma/.rvm/gems/ruby-1.9.3-p194 > GEM_PATH=/home/atma/.rvm/gems/ruby-1.9.3-p194:/home/atma/.rvm/gems/ruby-1.9.3-p194@global > > * 4 * * * /home/atma/Code/rankclient/rankclient.rb Try putting something in the minutes field. -- Matt It's not what I know that counts. It's what I can remember in time to use.