Page 24 of 28
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:10 am
by brunogts77
Code: Select all
@ phpsysinfo $ awk
VDLinux-BusyBox v1.14.3-VD Linux VDLinux.1.2.1.x (2011-01-18 11:04:20 KST) multi-call binary
Usage: awk [OPTION]... [program-text] [FILE...]
Options:
-v var=val Set variable
-F sep Use sep as field separator
-f file Read program from file
Code: Select all
@ phpsysinfo $ busybox awk
BusyBox v1.18.3 (2011-11-30 14:09:44 CET) multi-call binary.
Usage: awk [OPTIONS] [AWK_PROGRAM] [FILE]...
Options:
-v VAR=VAL Set variable
-F SEP Use SEP as field separator
-f FILE Read program from FILE
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:12 am
by DEUS
output of next line please
/mtd_rwcommon/widgets/user/SamyGO/SamyGO/bin/busybox
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:15 am
by DEUS
output of:
echo "true" | sed 's_true_false test_g' | busybox awk -F " " ' {print $2} '
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:16 am
by brunogts77
Code: Select all
@ phpsysinfo $ echo "true" | sed 's_true_false test_g' | busybox awk -F " " ' {print $2} '
@ phpsysinfo $ /mtd_rwcommon/widgets/user/SamyGO/SamyGO/bin/busybox
sh: /mtd_rwcommon/widgets/user/SamyGO/SamyGO/bin/busybox: not found
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:24 am
by DEUS
now just this two
echo "true" | sed 's_true_false test_g'
echo "false error" | busybox awk -F " " ' {print $2} '
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:28 am
by brunogts77
Code: Select all
@ phpsysinfo $ echo "false error" | busybox awk -F " " ' {print $2} '
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:34 am
by DEUS
second command? anyway will go to bed now n8
Code: Select all
echo "false error" | busybox awk -F " " ' {print $2} '
got it thx, awk is the problem
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 1:36 am
by brunogts77
DEUS wrote:second command? anyway will go to bed now n8
Ok, thanks Deus.
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 7:45 am
by DEUS
@juuso no write access to this folder can you upload one more and a txt with some garbage like this?
Code: Select all
test:test1:free:free1:free3:garbage
testab:testab1:freeab:freeab1:freeab3:garbageab
@all any better idea to load files from SF? if not will parse site and then download (basicaly same as right now) but no description (any idea? put a textfile with module name and desc also in this folder)
@brunogts77 no need to qoute me every time. maybe edit previous long post with code tag as well if there are some. you did second, did not see it.
why "busybox awk" is working not as expected? should be working same as on ARM or?
Re: New web inferface (Webif) for SamyGO
Posted: Sat Jun 02, 2012 8:19 am
by juusso
juuso wrote:@DEUS: what about move fetching of modules to SF file area: found files=available modules (
https://sourceforge.net/projects/samygo/files/WebIF/).
Seems curl of D5 series don`t know how to fetch the your given url. Same is on B series - no webpage is fetched.
SF is better, because: ~20 mirrors - ok, when forum is offline because of host problems (it happens time to time, especially at weekends), some kind of statistic available, easy to update module etc.
I see here few scenarios:
1. File list (withhout readme file, only modules on this page):
Code: Select all
curl -s http://sourceforge.net/projects/samygo/files/WebIF/ | w3m -dump -T text/html | awk 'BEGIN{FS="Totals";RS="---"}/</{print $2}'|awk 'NR>1{print $1}'
2. With readme file attached. Gets module names (and descriptions-currently missing on cmd line) from readme file...
Code: Select all
curl -s http://sourceforge.net/projects/samygo/files/WebIF/ | w3m -dump -T text/html | awk 'BEGIN{FS="Files for WebIF:";RS="---"}/</{print $2}'| awk '!/Source/{print $1}'
...and get download link (curl -L to follow http redirects):
Code: Select all
curl -Ls http://sourceforge.net/projects/samygo/files/WebIF/$Module_name/downloas -o $Module_name
for example:
Code: Select all
curl -Ls http://sourceforge.net/projects/samygo/files/WebIF/poor_webif.SGO_ext.tar/download -o ./poor_webif.SGO_ext.tar
New version same name replaces old versions automatically - not needed to change url links...
have w3m working on B series. Will make module and attach the webif module today.
DEUS wrote:@juuso no write access to this folder..
Need to call Erdem to give the sf access for you. This can take time...
@all any better idea to load files from SF? if not will parse site and then download (basicaly same as right now) but no description (any idea? put a textfile with module name and desc also in this folder)
Module name can contain some short description. Or description can be taken from attached readme file.
EDIT: this works on B series, haven`t tried to install via webif. May work on D series too. i hope.
Not for D5500/5700!
w3m_arm.SGO_ext.tar
Mstar module is needed to build if method with w3m is acceptable for you.