From: Panagiotis Atmatzidis Date: 2013-01-22T09:55:24+09:00 Subject: script gets executed multiple times by cron 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 ---- When I'm running this script manually everything works fine. But when I'm running this script using crontab, well it gets execute 10+ times in a row. Any idea why this happens? Panagiotis (atmosx) Atmatzidis email: atma@convalesco.org URL: http://www.convalesco.org GnuPG ID: 0xE736C6A0 gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0 -- The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."