def write_last_update(last_update_at)
      # Check for the presence of the tmp directory.
      if(! File::directory?("tmp")) then
        Dir.mkdir("tmp")
      end

      f = File.new("tmp/chronuscop.tmp","w")
      f.printf("%d",last_update_at.to_i)
      f.close()
    end
def write_last_update(last_update_at)
      # Check for the presence of the tmp directory.
      if(! File::directory?("tmp")) then
        Dir.mkdir("tmp")
      end

      f = File.new("tmp/chronuscop.tmp","w")
      f.printf("%d",last_update_at.to_i)
      f.close()
    end
Function to write the last update time to a temporary file.