Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-15-2015, 01:20 PM   #1
Registered: May 2015
Posts: 45

Rep: Reputation: Disabled
terminal not responding

i m running file following tcl script but terminal shows nothing no error no nam file nothing
whats wrong with this script??????

set ns [new Simulator]

set nf [open out.nam w]
$ns namtrace-all $nf

proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0

for {set i 0} {$i < 7} {incr $i} {
set n($i) [$ns node]

for {set i 0} {$i < 7} {incr $i} {
$ns duplex-link n($i) n([expr ($i+1)%7]) 1mb 10ms dropTail

$ns at 5.0 "finish"

$ns run

i write ns example3.tcl on terminal but terminal shows nothing even after waiting for long. when choose to close terminal it shows msg something running want to kill terminal
Old 05-15-2015, 07:16 PM   #2
Keith Hedger
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,480

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
use code tags,, what system are you using it on, is it in a vm, blah blah blah

Last edited by Keith Hedger; 05-15-2015 at 07:17 PM. Reason: said it was tcl my bad
Old 05-16-2015, 01:06 AM   #3
Registered: May 2015
Posts: 45

Original Poster
Rep: Reputation: Disabled
Originally Posted by Keith Hedger View Post
use code tags,, what system are you using it on, is it in a vm, blah blah blah
no m not using vm
ubuntu 12.04
ns2 tcl script using geditor


ns2, tcl-ns2

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
Terminal not responding properly OpenSuse 11.4 ? danost Linux - Newbie 7 11-24-2011 06:22 AM
Terminal is not responding Abu Noor Eddin Linux - Newbie 9 02-03-2009 11:28 AM
terminal not responding to password thatgirl Linux - Newbie 2 09-08-2007 06:44 PM
Redhat Linux Terminal Keyboard Not Responding gkchicago Linux - Hardware 4 06-29-2004 01:26 PM
Gnome-Terminal not responding. richcm Linux - Laptop and Netbook 2 10-26-2003 07:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:32 PM.

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