LinuxQuestions.org
Review your favorite Linux distribution.
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 05-15-2015, 12:20 PM   #1
rc49
Member
 
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, 06:16 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,408

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
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 06:17 PM. Reason: said it was tcl my bad
 
Old 05-16-2015, 12:06 AM   #3
rc49
Member
 
Registered: May 2015
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
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
 
  


Reply

Tags
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 05:22 AM
Terminal is not responding Abu Noor Eddin Linux - Newbie 9 02-03-2009 10:28 AM
terminal not responding to password thatgirl Linux - Newbie 2 09-08-2007 05:44 PM
Redhat Linux Terminal Keyboard Not Responding gkchicago Linux - Hardware 4 06-29-2004 12:26 PM
Gnome-Terminal not responding. richcm Linux - Laptop and Netbook 2 10-26-2003 06:19 AM


All times are GMT -5. The time now is 08:59 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