Problem with running Ruby with Cron
Posted
by Cheng
on Stack Overflow
See other posts from Stack Overflow
or by Cheng
Published on 2010-04-15T23:05:35Z
Indexed on
2010/04/15
23:13 UTC
Read the original article
Hit count: 244
My ruby file is like this.
`mkdir #{HOST} -p`
It works fine by: ruby mycode.rb
But in a cron job
0 * * * * ruby ~/backup.rb >> backup.log
It will a -p
folder. Why?
© Stack Overflow or respective owner