Welcome to LQ.
You have missing quotes in line 46, $ns at 0.0 $ftp start
and line 48, puts Simulation Running
... Must be
$ns at 0.0 "$ftp start"
$ns at 10 finish
puts "Simulation Running"
And there might also be quotes to add in line 45, $ns at 0.0 record
... To
$ns at 0.0 "record"
Solutions can be found by comparing with the 2,000 other simulation examples.
All examples : all_tcl-examples-2.tar.gz (41.8MB)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
** There are still some issues in your file : With the "record" entries.
Example search command, All-examples/ : $ grep -n record *
>>> Example file with "record" : wireless-tcp.tcl
-