Skip to content

Instantly share code, notes, and snippets.

@knowtheory
Last active December 13, 2015 20:18
Show Gist options
  • Select an option

  • Save knowtheory/4968646 to your computer and use it in GitHub Desktop.

Select an option

Save knowtheory/4968646 to your computer and use it in GitHub Desktop.
path_to_log = File.join(File.dirname(__FILE__),'cron_output.log')
File.open(path_to_log, 'w'){ |file| file << "I was last run at #{Time.now}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment