Results 1 to 9 of 9

Thread: AWK

  1. #1

    Question AWK

    Hi.
    I tried to follow the RRDTOOL-guide by macsat.
    But it doesn't work. Nothing happens.
    I then tried to run the RRDTOOL-script manually, but it returns with an error: /opt/usr/bin/rrdtool.sh: 128: awk: not found
    so it seems like I don't have awk.
    How do I install this ?

  2. #2
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Assuming you use Oleg's fw, you have awk here:
    PHP Code:
    /usr/bin/awk 
    so, I'd recommend to check what you have in the PATH variable

  3. #3
    I do use Oleg's firmware, but no, i don't have awk:

    [admin@wl500g bin]$ cd /usr/bin/
    [admin@wl500g bin]$ awk
    -sh: awk: not found

  4. #4
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Your test is incorrect. Strictly speaking you have to do either

    PHP Code:
    cd /usr/bin/
    ./
    awk 
    or

    PHP Code:
    /usr/bin/awk 

  5. #5
    [admin@wl500g bin]$ cd /usr/bin/
    [admin@wl500g bin]$ ./awk
    -sh: ./awk: not found
    [admin@wl500g bin]$ /usr/bin/awk
    -sh: /usr/bin/awk: not found
    [admin@wl500g bin]$

    still the same
    Last edited by Willie2_z; 02-12-2008 at 06:38.

  6. #6
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    well, that's really very strange, even close to impossible
    which device you have, which version of the firmware?
    PHP Code:
    cat /.version 
    In principle you can also install awk separately:
    PHP Code:
    ipkg install gawk 

  7. #7
    Actually I tried that earlier with this result:

    cat /.version
    1.9.2.7-5
    [admin@wl500g bin]$ ipkg update
    Downloading http://wl500g.dyndns.org/ipkg/Packages
    Updated list of available packages in /opt/lib/ipkg/lists/wl500g
    Downloading http://ipkg.nslu2-linux.org/feeds/un...l500g/Packages
    Updated list of available packages in /opt/lib/ipkg/lists/unslung
    Successfully terminated.
    [admin@wl500g bin]$ ipkg install gawk
    Nothing to be done
    An error ocurred, return value: 4.
    Collected errors:
    Cannot find package gawk.
    Check the spelling or perhaps run 'ipkg update'
    [admin@wl500g bin]$

    Still no go.

  8. #8
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    ok, now clear, you have a very old version of the firmware.
    according to http://oleg.wl500g.info/ Oleg first added awk applet in 1.9.2.7-5a

    In addition you use an old unslung/wl500g repository, while current one is optware/oleg The old one at the moment is not well maintained, so gawk package is really missing, despite some other packages depend on it.

    There were a lot of changes since that version, so if you now install the latest version, probably you will have to make again setup of everything from the very beginning ( there is a very good and up-to-date tutorial from wengi ). If you switch to another repository, you'll have to reinstall all packages.

    In principle, if you want a minimum effort solution, I'd guess you can install 1.9.2.7-5a It seems that it is still available.

  9. #9
    I installed the newest firmware. nad yeah, you were right. It works now..
    Thanks a lot.

Similar Threads

  1. Âîïðîñ íàñ÷åò Torrent
    By arik in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 1243
    Last Post: 04-10-2011, 23:29
  2. RRDTool Traffic Graph Tutorial - Extremely easy to follow !
    By macsat in forum WL-500gP Tutorials
    Replies: 83
    Last Post: 09-06-2009, 21:34
  3. Real-time bandwidth use
    By gwl in forum WL-500g Q&A
    Replies: 8
    Last Post: 12-01-2005, 03:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •