I am trying to execute a TCL script in NS2 simulator but I see this error:
bash: ./ns: No such file or directory
The path is `ns-2.35/tcl/ex/wpan.' When I execute this file in ns-2.35, it runs well.
How can I fix this?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The path isn't what you think it is.
If you don't specify the path, the system will search for your executable using the PATH environment variable, not in your current directory.
Use ./ before your executable name and that will work.
./ means "This directory", just like ../ means "the parent directory"