LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2012, 09:28 AM   #1
divya84
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
I am getting the following error while executing the drop1.tcl program. Plz help me t


I just installed ns-2.34 in fedora 16, but when i tried to run a sipmle program it gives an error:

"nam: no display name and $DISPLAY environment variable"

how to remove this any solution please.
 
Old 10-10-2012, 09:57 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,682

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Welcome to LQ.

drop1.tcl http://enggedu.com/source_code/ns2/n...cific_time.php
""TCL script to drop down the packets in particular link at specific time""

$ ns drop1.tcl : Works OK here. Nam opens.

But : If you are doing the command 'ns drop1.tcl' as root (su),
do not expect a GUI applications like nam to work.

The default location for ns-allinone-2.xx is /home/<name>/<dir>/.
And all commands are to be run as unprivileged user.


Good luck !

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing tcl script by logging to a linux machine is there any way other than expect kamesp Linux - Software 2 06-15-2012 11:44 AM
invalid command type "llType" error occuring when executing a tcl script in ns2.34 madhu.bm Linux - Software 1 05-04-2012 05:30 AM
want a ns2 program code in tcl MONICA Linux - Wireless Networking 1 04-23-2012 05:49 PM
TCL executing commands riotxix Programming 1 12-30-2006 12:10 AM
Tcl/Tk Program to change Screen Resolution soda Linux - General 2 01-20-2003 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration