Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby捆绑包未通过cronjob运行_Ruby_Bash_Bundle_Crontab - Fatal编程技术网

Ruby捆绑包未通过cronjob运行

Ruby捆绑包未通过cronjob运行,ruby,bash,bundle,crontab,Ruby,Bash,Bundle,Crontab,我试图从cronjob运行ruby包,但它不起作用,但是如果我从bash命令行运行该包,它就可以正常工作。我错过什么了吗 命令是: BUNDLE\u GEMFILE=/client/GEMFILE BUNDLE exec/client/bin/runner 我在crontab中设置如下: */1****BUNDLE\u GEMFILE=/client/GEMFILE BUNDLE exec/client/bin/runner 但是我没有得到任何结果。我真的很感谢大家的帮助 谢谢, Justin我

我试图从cronjob运行ruby包,但它不起作用,但是如果我从bash命令行运行该包,它就可以正常工作。我错过什么了吗

命令是:
BUNDLE\u GEMFILE=/client/GEMFILE BUNDLE exec/client/bin/runner

我在crontab中设置如下:
*/1****BUNDLE\u GEMFILE=/client/GEMFILE BUNDLE exec/client/bin/runner

但是我没有得到任何结果。我真的很感谢大家的帮助

谢谢,
Justin

我几乎不知道正在使用rbenv,因此修复程序是:


*/1****bash-lc'BUNDLE\u GEMFILE=/client/GEMFILE BUNDLE exec/client/bin/runner'

用户在哪个环境下运行cron作业?与控制台中的相同吗?没有结果,甚至没有错误是什么意思?是的,@spickermann crontab是root,bundle exec也属于root。