All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Arkadiusz Binder" <arek@chelmnet.pl>
To: lartc@vger.kernel.org
Subject: RE: [LARTC] linux tc + contab
Date: Mon, 23 May 2005 14:07:17 +0000	[thread overview]
Message-ID: <20050523140713.A3331EE986@tx.pl> (raw)
In-Reply-To: <a763a15b050523065052d8e111@mail.gmail.com>

Maybe cron user is not a root???

Maybe you need different shell in top of yous script???

-----Original Message-----
    From: "foxy 202"<foxy202@gmail.com>
    Sent: 05-05-23 15:50:34
    To: "LARTC"<lartc@mailman.ds9a.nl>
    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

      reply	other threads:[~2005-05-23 14:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 13:50 [LARTC] linux tc + contab foxy 202
2005-05-23 14:07 ` Arkadiusz Binder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050523140713.A3331EE986@tx.pl \
    --to=arek@chelmnet.pl \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.