I apologize if Charlie already covered this below, but you could try to use the cd command to make the directory where the executable is located the current working directory and then run the command with $./foobar. As Charlie says, the directory may not be in your path, so if you explicitly provide the path then your problem may go away. Note that the dot in ./ is a shortcut for the current working directory.
On 17/01/12 18:00, Charlie Kravetz wrote: > On Tue, 17 Jan 2012 15:30:09 -0800 (PST) > Tom Masterson <[email protected]> wrote: > >> I know this is probably off topic but I and my colleagues are very >> confused. I am using ubuntu 11.10 fully updated. I have a program that >> installs to a subdirectory of /opt. It comes up in a "ls -l" with >> -rwxr-xr-x permissions. When I try to run it either as myself or as sudo >> I get a "file or directory does not exist" error. As I say al list and >> even the file command say it is there and executable. Any ideas? > >> Tom > > > I suggest using a > cd /opt/directory_with_executable > > and if that fails > to let the application work, try running it in terminal with > > sh PROGRAM > > after using cd to get to the directory. This often works, since the > error you are getting is either because the program is not in the path > or requires teh sh in front to let the script work correctly. > -- Christopher (CJ) [email protected] -- Ubuntu-accessibility mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-accessibility
