i have added the path to where i have saved my tcl script (i.e. where ns2 is installed in home/me/ns-allinone-2.35). i have created a .bashrc and .bash_profile too, since they were not there.
In bashrc i have given the following path:
$PATH=PATH:/home/me/ns-allinone-2.35
in bash_profile the following:
if [ -f ~/.bashrc ]; then source ~/.bashrc fi
now when i type in my terminal:
ns ns-simple-trace.tcl
i get the error:
o: command not found
bash:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/me/ns-allinone-2.35: No such file or directory
what should i do to get my 'ns-simple-trace' script running?
ns
?ns-allinone-2.35/ns-2.35
and try this:./ns filename.tcl
. Does it work?