script reports file not found

Andreas Bernauer fedora at lysium.de
Thu May 17 10:33:25 UTC 2007


Thufir wrote on Wed, May 16 2007 at 19:40 (+0000):
> [thufir at 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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20070517/40442980/attachment-0002.bin 


More information about the users mailing list