Q:

System Call in Rails returns 'No such file or directory'

I try to execute shell commands in rails using the following:
result = `which wkhtmltoimage-proxy`

but I always get back:
No such file or directory - which wkhtmltoimage-proxy

If I just type the command in my shell, everything works but not in the rails environment.
Doesn't matter which commands I try, none of the work.
Do I need to configure anything in rails?

A:

I figured it out. I am using an IDE tool and didn't set the environment variables correctly. Anyways, the problem is solved now. Thanks for all your help!

