From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Arkadiusz Binder" Date: Mon, 23 May 2005 14:07:17 +0000 Subject: RE: [LARTC] linux tc + contab Message-Id: <20050523140713.A3331EE986@tx.pl> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Maybe cron user is not a root??? Maybe you need different shell in top of yous script??? -----Original Message----- From: "foxy 202" Sent: 05-05-23 15:50:34 To: "LARTC" Subject: [LARTC] linux tc + contab Hi I have strange problem. same traffic control rules when i started it manual they work OK, but when i started it from crontab / twice per day / doesn't work correctly ... look like delete rules doesn't work ... any ideas where to look for problem ? i use debian sarge Linux 2.6 kernel , #!/bin/bash TC=/sbin/tc DEV=eth1 echo "Delete all rules" $TC qdisc del dev $DEV root echo "Add new root rule" $TC qdisc add dev $DEV root handle 1: htb default 101 echo "lavel I - main tc rules" $TC class add dev $DEV parent 1: classid 1:2 htb rate 1mbit ceil 1mbit prio 3 $TC class add dev $DEV parent 1: classid 1:3 htb rate 1mbit ceil 1mbit prio 1 [Message truncated. Tap Edit->Mark for Download to get remaining portion.] _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc