2012-02-07から1日間の記事一覧
#!/bin/bash if [ -f /etc/profile.d/rvm.sh ] then source /etc/profile.d/rvm.sh else echo '$0: /etc/profile.d/rvm.sh not found' exit 1 fi
time = Time.now.strftime "%Y%m%d" file_name = time + "test.log" ActiveRecord::Base.logger = Logger.new("/var/log/test/"+file_name)