#7 PATH - ip command not found

open
nobody
None
5
2003-04-13
2003-04-13
Anonymous
No

In version 0.7.2 is not PATH="..."
In version 0.7.1:
PATH="/sbin:/usr/sbin:/bin:/usr/bin" = it's OK

Discussion

  • Paulo Sedrez
    Paulo Sedrez
    2003-10-07

    Logged In: YES
    user_id=35269

    Actually, the problem shows when you start cbq with service
    (service cbq start); the service script starts the cbq
    script with a clean environment (env -i), so you only get
    the default path of bash (/usr/local/bin:/usr/bin:/bin). The
    ip command is usually at /sbin.

    The solution is to patch the cbq script and restore the PATH
    - AND export it:

    export PATH="${PATH}:/sbin"