in reply to looking for the next hop

Better check the return value of this line:
ip route flush cache
If you are not logged in as root, you may not have access to he "ip" command. (either wrong permissions or wrong path.)

Replies are listed 'Best First'.
Re^2: looking for the next hop
by cc (Beadle) on Jan 24, 2006 at 22:12 UTC
    no, I run this script from cron as root user
    and it seems to work,
    but I don't know if it's a good idea to feed the system with backticks.
    I would like to avoid zombie processes executed via perl.