I’m trying to setup CutyCapt on my Ubuntu 10.4 server.
I generate a thumbnail using the following command in SSH:
xvfb-run --server-args="-screen 1, 1280x1200x24" ./CutyCapt --url=http://www.google.dk
--out=/var/www/user/data/www/domain.com/test.png --min-width=1280 --min-height=1200
… and it’s working great!
Though when I run the entire same command from a PHP file using shell_exec I get an error:
/usr/bin/xvfb-run: 181: ./CutyCapt: not found
Does anyone have an idea what’s wrong?
Thanks in advance
In which directory is
CutyCapt? Is that the same directory from which you runxvfb-run?Hint: Use an absolute path or something relative to
$HOMEor something like that. If you put the command above in a script, you can get a path relative to your script with: