I'm using Runtime to make a call to the system.
When I call it with "ls -l" and read in what it gets, it prints the directory contents exactly as expected.
However when I call it with "which ffmpeg" or "ffmpeg -i FILENAME" it comes back saying ffmpeg can't be located, even though when I use ffmpeg exactly the same way at the command line it works fine. Similarly it refuses to work with "which mysql" or "which perl" all of which exist and work fine on the system.
I'm assuming it's some sort of permissions thing, but I'm at a loss as to how to get around it.
Any thoughts?
edit--
Some additional info... I'm running this as a junit in Eclipse, so, perhaps it's all an environment problem. I've never configured Eclipse for this specifically... perhaps I need to? When I pass in command "echo $PATH" it just prints out "$PATH" rather than an actual path; again, not sure what that means. Lastly, I'm on OSX, so, you can treat this as a linux problem, if that helps.