I'm using the following script to generate the traffic files for ns2 but the script is not working and there is no output in the file .can anybody tell me if there is something wrong with the script ?It's from the website http//www.crhc.illinois.edu/wireless/assignments/simulations/slabc2.html I 've changed the ns2 version and directory path to my own ns2 directory path ,is there any mistake in this script ? #!/bin/bash dest_dir="traffic" if [ -d $dest_dir ] then # Do nothing echo "'$dest_dir' is a directory" else echo "Creating directory $dest_dir"; mkdir --verbose $dest_dir fi script_file="/home/ns/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/cbrgen.tcl"; if [ -f $script_file ] then # Do nothing echo "$script_file exists" else echo "$script_file does not exist" exit; fi # Create the scenarios for i in 5 10 15 20 do ns $script_file -type cbr -nn 25 -seed 1 -mc $i -rate 8.0 > $dest_dir/cbr-25-$i done echo "" echo "Created the following files" echo "" ls -la $dest_dir/cbr-25*