Christian Kerth wrote:
Forgot to close the File...

....damn!  ;-)


> loop do
> 
>   f1 = File.new(Dir.getwd+"/process1","w").flock(File::LOCK_UN) do |f|
>     f.puts "process1"
>   end
> 
>   sleep 60
> 
> end
-- 
Posted via http://www.ruby-forum.com/.