ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Is Linux Annoying?
Subject:   error message that could drive you nuts
Date:   2003-09-16 07:33:34
From:   anonymous2
have a look at this session:


# ls -l somefile
somefile
# chmod +x somefile
# ./somefile
./somefile: Command not found.
# what the %$&!?
# file somefile
somefile: perl script text


what happened?


# head -1 somefile
#!/usr/local/bin/perl
# ls /usr/local/bin/perl
/usr/local/bin/perl: No such file or directory.
# aha!
# vi somefile
fldwx
# ./somefile
Hello, world!



1 to 1 of 1
1 to 1 of 1