Re: script reports file not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thufir wrote on Wed, May 16 2007 at 19:40 (+0000):
> [thufir@localhost ~]$ ./run
> /home/thufir
> thufir
> pwd ; whoami ; cat /home/thufir/run ; ls -al /home/thufir/dummy ; ruby /
> home/thufir/dummy/script/generate scaffold dummy ; ./home/thufir/dummy/
> script/generate controller hello index ; cat /home/thufir/dummy/views/
> hello/world.rhtml ; cat /home/thufir/dummy/config/database.yml ; cat /
> home/thufir/dummy/controllers/hello_controller.rb ; cat /home/thufir/
> dummy/views/hello/world.rhtml ; date ; cat /home/thufir/dummy/script/
> server ; ./home/thufir/dummy/script/server

You cat "/home/thufir/...", but you execute "./home/thufir/...", note the
dot before '/home'.


 ./run: line 1: ./home/thufir/dummy/script/generate: No such file or 
> directory

If 'generate' is a script, the one who launches the script might be unable
to find the interpreter for the script. For example, if the first line of
'generate' says
#!/bni/bash

then you would get the same error, as there is no '/bni/bash' in your system.

Andreas.

PS: Why do you post this on the fedora list?

--
http://www.lysium.de/blog 

Attachment: pgp7pG8ypcPip.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux