开发者

Why do I always need "ruby" in front of "script/runner"?

开发者 https://www.devze.com 2023-01-15 19:05 出处:网络
When I do just script/runner it gives me -bash: script/runner: Permission denied When I do sudo script/runner it gives me sudo: script/runner: command not found

When I do just script/runner it gives me -bash: script/runner: Permission denied

When I do sudo script/runner it gives me sudo: script/runner: command not found

It only works when I do ruby script/runner. Why? Everywhere else I see people just run script/runner without the ruby in front of it... Is there a 开发者_StackOverflow社区"fix" for this? It's causing my javan-whenever generated crontab to fail on Permission denied because it just runs script/runner without ruby...


It sounds like the "execute" permission bit is not set on your script/runner file. If that bit is not set, the unix shells will not try to execute it.

chmod +x script/runner can be used to set it. man chmod for more details on the chmod command.


just do this

chmod +x script/runner

and it would run. It basically makes it a executable.

use

man chmod

to get more details

0

精彩评论

暂无评论...
验证码 换一张
取 消