|
[Tomahawk-users] Shell script with Tomahawk
From: KURUPPANKANDI, SANDEEP \(SANDEEP\) <ksandeep@al...> - 2008-02-05 13:04
|
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@... 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@... 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
|
| Thread | Author | Date |
|---|---|---|
| [Tomahawk-users] Shell script with Tomahawk | KURUPPANKANDI, SANDEEP \(SANDEEP\) <ksandeep@al...> |