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


Similar Content



Error:: "wrong # Args: Should Be "set VarName ?newValue?" " While Running TCL Script

I m learning Tcl and write short code. After running code i got same error repeatedly and not able to find mistake,,,i wrote it as it is from a tutorial. here is the code below

set ns [new Simulator]

set f1 [open out.nam w] #open nam file out.nam
$ns namtrace-all $f1

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


set n1 [$ns node] # 3 nodes defined
set n2 [$ns node]
set n3 [$ns node]

set duplex-link $n1 $n2 10mb 10ms Droptail
set duplex-link $n2 $n3 10mb 10ms DropTail
set duplex-link $n3 $n1 10mb 10ms DropTail

set udp1 [new Agent/UDP] #UDP agent attached to node n1
$ns attach-agent $n1 $udp1

set cbr1 [new Application/traffic/CBR]
$cbr1 set packetSize_ 500
$cbr1 set interval_ 0.005
$ns attach-agent cbr1 udp1

set null1 [new Aggent/Null]
$ns attach-agent $n2 $null1


$ns connect $udp1 $null1

$ns at 0.5 "$cbr0 start"
$ns at 4.5 "$cbr0 stop"


$ns at 12.0 "finish"

$ns run



ERROR:wrong # args: should be "set varName ?newValue?"
while executing
"set f1 [open out.nam w] #open nam file out.nam"
(file "11.tcl" line 19)

Terminal-table/table Terminal - What Is It?

I am reading a gnuplot pdf FAQ. In section 3.13 it says: "This requires you to write contours into a temporary file using the table terminal." Then I google and all I get is terminal-table. It says: install terminal-table by applying this command:

Quote:
$ sudo gem install terminal-table
What is it all about? What is a table terminal? What is a terminal-table? It looks like terminal table is to print tables in a terminal, right?

Thanks, - A.

About .cshrc File In Which I Put Pyraf Instruction And It Is Continously Running !!!

hello all,
Everything was working really fine, but when i put "pyraf" instruction in .cshrc file, and when i opened terminal , as soon as i open terminal it continously runnig pyraf instruction and not letting me to work in terminal.
I dont know what to do and how to stop it , please help !! Please I need your help !!!

Thanking you in anticipation,

Cygwin Rsync Script Copying File Incorrectly

I am trying to write a simple test script that executes a single rsync call. Once I get the syntax right, the script will be expanded to incorporate several rsync instructions to save me time.

I'm using a Cygwin Terminal on Windows 7 to run Rsync.

The script is called "backup" and I call it from the cygwin terminal using "./backup". Have used chmod to make it executable.

When I execute the rsync instruction as a standalone instruction at terminal prompt, the file copies to the target folder perfectly.

However, when I try and drop the same instruction into a script, it copies the file over from it's original file name "mvi_1840.mov" to a file with the name "." -- literally a single period. I can rename the file to a .mov file and it works fine but naturally, I don't want to have to do this.

The one other thing I will mention is that the file is located in the /home/"username" directory in cygwin vs /bin. But I would not think that this would make a difference.

I have pasted the contents of the script file below:
Code:
#!/bin/bash
    rsync.exe -rltDvP --exclude "System Volume Information" --exclude
 "RECYCLER" --exclude=\$RECYCLE.BIN --delete "/cygdrive/c/users/<USERNAME>
/desktop/mvi_1840.mov" "/cygdrive/c/users/<USERNAME>/desktop/test/"

Any help would be greatly appreciated!

Thanks

Running JMRI/Decoder Pro - Run In Terminal - Terminal Flashes And Dissappears.

I have downloaded the JMRI/Decoder Pro package. When I go to open Decoder Pro I get the screen which asks, Run in Terminal, Display, ,?, and Run. If I select Run I get no response, If I select Run in Terminal The Terminal screen flashes for only a second and dissapears.

I have not been able to get an Icon to launch the program from my desktop.

I am usung Linux Mint 16 (Petra)3.11.0-12 generic (MATE) 1.6.1

JMRI is the standard download for Linux from Source . org.

I am new to both Linux (3 yrs) JMRI had worked with it some in Windows, Totally new in Linux.

I don't know what else to include, I'll be happy to answer questions.

No Such File Or Directory Error On Opening Bash

Hi folks,

I have a very basic question for you if you don't mind. Whenever I open a terminal, I get this

Code:
 bash: /etc/profile.d/touchpad.sh: No such file or directory

followed by the usual prompt.

A few weeks ago I made a script called touchpad.sh, which would run whenever I opened a terminal. In the end, I deleted it because it wasn't doing what I wanted it to do. But some file is clearly still pointing to it. I've searched high and low for the source of this error, i.e. some reference to touchpad.sh, but I cannot find it. I've looked in ~/.bashrc ~/.profile and a few other places I can't remember offhand that I found on the Internet. Can anyone tell me where this reference is most likely to be? While it doesn't cause any problems and I can still use the terminal without a problem, it's a bit annoying and considering the amount of time I've spent trying to solve this problem, I'd be most grateful if someone point me in the right direction.

I'm running Sparky Linux (Debian Jessie) 64-bit (XFCE install) with Enlightenment Desktop on Lenovo T420.

Thank you in advance.

.o: File Not Recognized: File Format Not Recognized When Compiling

Hello,

I am working on a board (sbc6000x with at91sam9261 micro, linux 2.6.24 to be precise) and having some fun making script i wanted to make real application.
The board is coming with a cross compilation toolchain. When trying to make a simple "hello world" executable to print on the terminal there is no problem.
I open my terminal, give the path of the compiler, cd into the folder where my .c file is and then i type :
Code:
arm-linux-gcc -o hello hello.c

Which create my executable "hello" and this one is working. But like i said, this program only played with the terminal.

The board is starting with a script calling another executable which use the lcd display, i have the source of this executable. My idea was to look at what was in the source of this application (lots of folders and files) in order to understand how it was working. I wanted to test the toolchain on the source (with the makefile) to see if i was able to generate an executable from a application with folderS/fileS but when i try to "make" it i have this error.

In my understanding this is an object file but aside from that i don't see why it would not works.

Thank you for your future answers !

How To Upload From CentOS 7(Desktop PC) Terminal To Remote FTP

Hello
I have a zip file on my home/jaydul/file.zip
I want upload it my remote FTP Server.
Like IP: 123.125.25.1
user: userftp
Pass: ftppass

How to do via terminal.I don't wanna via Ftp client.only via terminal command.

Terminal Install

imac 5,1 core 2 duo
i have only been able to install ubuntu 11.4 which means that my wireless network doesnt work, it says device not ready, firmware missing.
how do i install ubuntu latest version using the terminal because the apple bios???? wont allow me to mount the iso file. what script do i need to get it installed via the terminal ?

ive managed 11.4 but its not support4d anymore. imac core duo has notorius problems with linux

Hostname Missing In CLI

Bare with the noob here

For some reason, when I open terminal, the prompt has changed from the usual user@localhost to user@xx-xx-xx-xx-xx-xx where the xx are numbers/letters, I am assuming hexadecimals?

Why?

The title bar of the terminal window still shows user@localhost:~ , HOSTNAME is still localhost.localdomain, so whats with the gibberish at the prompt?