1

私はWindowsでRoRを使用しているので、最初の質問は次のようになります。Windowsでいつでも使用できますか?

現時点では、まったく機能していません。私はこのコードを試しました:

   set :output, "#{path}/log/cron.log"
   set :environment, 'development'

  every 2.minutes do 
   command "rm '#{path}/log/text.txt'", environment => "development"
 end

コマンドを実行するときのコンソールは次のとおりです。

 whenever
 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,5
 6,58 * * * * /bin/bash -l -c 'rm '\''E:/mus/RailsCasts PRO/164-cron-in-ruby-revi
 sed/164-cron-in-ruby-revised/schedules-after/log/text.txt'\'' >> E:/mus/RailsCas
 ts PRO/164-cron-in-ruby-revised/164-cron-in-ruby-revised/schedules-after/log/cro
  n.log 2>&1'

 ## [message] Above is your schedule file converted to cron syntax; your crontab
 file was not updated.
 ## [message] Run `whenever --help' for more options.

そしていつでも-i:

  whenever -i

 [fail] Couldn't write crontab; try running `whenever' with no options to ensure
 your schedule file is valid.

2番目の質問:txtファイルまたはxlsを作成し、その後に情報を追加する必要があります-それをPayPal(Mass Pay)に送信します。

このgemを使用してファイルを作成するにはどうすればよいですか?

私はすでにデータをxls形式にエクスポートすることができました。

4

0 に答える 0