Re: Starting Acrobat Reader in code

This might not even be a ruby problem. Before you try and do it with system, can you just do it on the command line first? If so then what do you type into the command line to get it to work? AFAIK what you are doing now is equivalent to typing

/usr/bin/acroread "reports/test.pdf"

as the second argument to system is kept wrapped in the string when it is sent to the command line/shell.

What you might mean to do (on the command line) is this

/usr/bin/acroread reports/test.pdf

in which case your system call should put all of the above in a single string, ie

Re: Starting Acrobat Reader in code

oh and as a side note, usually /usr/bin is in your PATH environment variable, so you can call exes in it simply by name, rather than specifying the full path to it. If it isn't in your path then you should add it as it's a standard location for executables.

And, also, sometimes you might need to put ./ at the start of the path to a local file you want to open (this always seemed a bit random to me but i'm not a *nix expert).