[Tomahawk-users] Shell script with Tomahawk
Brought to you by:
bsmith1180,
dkolbly
From: KURUPPANKANDI, S. \(SANDEEP\) <ksa...@al...> - 2008-02-05 13:04:10
|
Hi All, I was executing the following script using the zenity for tomahawk. ##################################################################### repeat=$(zenity --entry --text "Run pcap hw many times?" --title "Repeats") parallel=$(zenity --entry --text "How many pcaps to run ?) pcap=$(zenity --file-selection) address=$(zenity --entry --text "Start addes:" ) rate=$(zenity --entry --text "Desire pkt rate in Mbps") zenity --info --text=$pcap tomahawk -n $parallel -l $repeat -f $pcap -i eth0 -j eth1 -a $address -R $rate -t 10 ######################################################################## But when I run the following script the following error pops up; ################################## [root@and d]# bash tshell.sh :command not found :command not found :command not found for readingg /home/d/test.pcap : No such file or directory : command not found [root@and d]# ###################################### But when the embedd the same file path in $pcap it works fine. It doesnt work when I pass the variable of the path file to tomahawk. If you know a solution for this, expecting a response. Thanks in advance, -Sandy |