Home

Comandos Más utilizados

Fundi

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
19 Mar 2007
11.803
596
0
Todos estos comandos pueden ser utilizados vía Telnet para nuestro AZBOXHD, a la hora de realizar script.

<!--[if !supportLineBreakNewLine]-->
<!--[endif]--><o:p></o:p>
<!--[if gte mso 9]><xml> <u1:WordDocument> <u1:View>Normal</u1:View> <u1:Zoom>0</u1:Zoom> <u1:HyphenationZone>21</u1:HyphenationZone> <u1:punctuationKerning/> <u1:ValidateAgainstSchemas/> <u1:SaveIfXMLInvalid>false</u1:SaveIfXMLInvalid> <u1:IgnoreMixedContent>false</u1:IgnoreMixedContent> <u1:AlwaysShowPlaceholderText>false</u1:AlwaysShowPlaceholderText> <u1:Compatibility> <u1:BreakWrappedTables/> <u1:SnapToGridInCell/> <u1:WrapTextWithPunct/> <u1:UseAsianBreakRules/> <u1:DontGrowAutofit/> </u1:Compatibility> <u1:BrowserLevel>MicrosoftInternetExplorer4</u1:BrowserLevel> </u1:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <u2:LatentStyles DefLockedState="false" LatentStyleCount="156"> </u2:LatentStyles> </xml><![endif]--> Comandos Telnet AZBOXhd<o:p></o:p>
<o:p> </o:p>
MMP[~]$ a <o:p></o:p>
<o:p></o:p>
addgroup admin_control alias app_script.sh awk adduser af app_control ash <o:p></o:p>
<o:p> </o:p>
MMP[~]$ b <o:p></o:p>
<o:p> </o:p>
basename bind browser_control bzcat bash boot_auth builtin bashbug boot_controler bunzip2 bc break busybox <o:p></o:p>
<o:p> </o:p>
MMP[~]$ c <o:p></o:p>
<o:p> </o:p>
calc cat chkspeed chroot cls compgen cp caller cd chmod chvt cmp complete cut case chgrp chown clear command continue <o:p></o:p>
<o:p> </o:p>
MMP[~]$ d <o:p></o:p>
<o:p> </o:p>
date deluser dmesg du dc detector_test do dummy_control dd df doc_loadbios dumpleases deallocvt dhcpc_script.sh docfdisk declare dirname done delgroup dirs dos2unix <o:p></o:p>
<o:p> </o:p>
MMP[~]$ e <o:p></o:p>
<o:p> </o:p>
echo enable event_dispatcher expr egrep env exec elif esac exit else eval export <o:p></o:p>
<o:p> </o:p>
MMP[~]$ f <o:p></o:p>
<o:p> </o:p>
factory_init.sh fgrep flash_info freeramdisk false fi flash_lock ftl_check fbset file_control flash_unlock ftl_format fc find flashcp function fdformat flash_erase for fdisk flash_eraseall free <o:p></o:p>
<o:p> </o:p>
MMP[~]$ g <o:p></o:p>
<o:p> </o:p>
gdbserver getty genxenv grep get_time_from_internet.sh gunzip getopt gzip getopts <o:p></o:p>
<o:p> </o:p>
MMP[~]$ h <o:p></o:p>
<o:p> </o:p>
halt hdparm help history hostname hash head hexdump hostid hwclock <o:p></o:p>
<o:p> </o:p>
MMP[~]$ i <o:p></o:p>
<o:p> </o:p>
iconv ifup insmod iwgetid id in install iwlist if inadyn-advanced ipop_agent iwpriv ifconfig indent ir_control iwspy ifdown init iwconfig <o:p></o:p>
<o:p> </o:p>
MMP[~]$ k <o:p></o:p>
<o:p> </o:p>
kill killal klogd

MMP[~]$ l

ldd ln login ls lan_script.sh let local logname lsmod ldconfig ll logger logout <o:p></o:p>
<o:p> </o:p>
MMP[~]$ m <o:p></o:p>
<o:p> </o:p>
makedevs mkfifo mknod modprobe mt md5sum mkfs.ext3 mkswap more mtd_debug minicom mkfs.jffs mktemp mount mv mkdir mkfs.jffs2 modem_control mount.cifs <o:p></o:p>
<o:p> </o:p>
MMP[~]$ n <o:p></o:p>
<o:p> </o:p>
nandwrite netstat nftldump nslookup nano-X nftl_format nmbd <o:p></o:p>
<o:p> </o:p>
MMP[~]$ r <o:p></o:p>
<o:p> </o:p>
radio_test readlink renice rm route rx rdate readonly reset rmdir rssfeed read reboot return rmmod run-parts <o:p></o:p>
<o:p> </o:p>
MMP[~]$ s <o:p></o:p>
<o:p> </o:p>
sample-data-init.sh sleep_agent status.sh sed smb_chmod.sh stop.sh select smb_script.sh strings set smbd stty setup_language.sh smbpasswd su setxenv snice sulogin sfdisk snmpd sumtool sh sort swapoff sha1 sum source swapon shift ssh-keygen sync shopt sshd sysctl sleep start-stop-daemon syslogd sleep.sh start.sh <o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
MMP[~]$ u <o:p></o:p>
<o:p> </o:p>
udhcpc umount uniq until usb_script.sh udhcpd umount.cifs unix2dos unzip usleep ulimit unalias unset update_agent uudecode umask uname unsetxenv uptime uuencode <o:p></o:p>
<o:p> </o:p>
MMP[~]$ v <o:p></o:p>
<o:p> </o:p>
vconfig vfd_display vi vlock vsftpd <o:p></o:p>
<o:p> </o:p>
MMP[~]$ w <o:p></o:p>
<o:p> </o:p>
wait which wpa_cli wc while wpa_passphrase wget whoami wpa_supplicant <o:p></o:p>
<o:p> </o:p>
MMP[~]$ y <o:p></o:p>
<o:p> </o:p>
yes youtube_player <o:p></o:p>
 

2468

Usuario
Amigo OpenSPA
19 May 2009
97
0
0
Muchas gracias Fundidun, pero como si me pusieran chino delante, el unico el ultimo que parece que sea para el youtbe :grin:.
 

Fundi

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
19 Mar 2007
11.803
596
0
jajaaj y encima salieron todos juntos, luego los separo y pongo algun ejemplo.
 

Fundi

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
19 Mar 2007
11.803
596
0
Mira para mi es la manera mas fácil de entender como funciona el cacharro, ya que me lista en pantalla los movimientos que realiza.

Pj el reproductor de youtube, con el comando youtube_player, mientras navego por el con el deco, en el terminal me indica todos los procesos que realiza (un Log), asi podemos mirar que es lo que toca o no para luego poder modificarlo nosotros en el Script, si es que se puede, lo mismo pasa con muchas otras opciones.

Te dejo parte del código, desde que entras realizas una búsqueda y luego ves el video. :thumbsup:


Código:
MMP[~]$ youtube_player
[YOUTUBE]  Player start !!!
[YOUTUBE] open CA !!!
[YOUTUBE] sucess to open CA !!!
[YOUTUBE] download_thread start (pid = 1280)
[YOUTUBE] youtube_download_thread start (pid = 1281)
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=1&max-results=5&orderby=published
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] Title: YouTube Videos matching query: BONO
[YOUTUBE] Total Count: 27314
[YOUTUBE] Total Count is too big(Change to 500)
[YOUTUBE] Entry Count: 5
[YOUTUBE] overflow in unicode buf
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=MIr6zbKeDqY
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=6FIg3MemrJQ
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=_RcSpllYXQ4
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=95-E8semsNY
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=8fXDYvJrwc0
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3683 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3683
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3571 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3571
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3571 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3571
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3673 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3673
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3673 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3673
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=6&max-results=5&orderby=published
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=11&max-results=5&orderby=published
[YOUTUBE] CURL Retrun Code : 23
[YOUTUBE] fail to get xml data(from:http://gdata.youtube.com/feeds/api/videos?vq
=%42%4F%4E%4F&start-index=11&max-results=5&orderby=published)
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] Title: YouTube Videos matching query: BONO
[YOUTUBE] Total Count: 27314
[YOUTUBE] Total Count is too big(Change to 500)
[YOUTUBE] Entry Count: 5
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=nw2G3w2YkEI
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=6TXmFtg_XkI
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=-EWqNJ6yp-Q
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=fVF0S6rnUEk
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=G93dQgeGWFo
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3605 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3605
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3471 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3471
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3569 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3569
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3689 bytes)
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=16&max-results=5&orderby=published
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=21&max-results=5&orderby=published
[YOUTUBE] CURL Retrun Code : 23
[YOUTUBE] fail to get 4th thumbnail(from:http://i.ytimg.com/vi/G93dQgeGWFo/2.jpg
)
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] Title: YouTube Videos matching query: BONO
[YOUTUBE] Total Count: 27314
[YOUTUBE] Total Count is too big(Change to 500)
[YOUTUBE] Entry Count: 5
[YOUTUBE] overflow in unicode buf
[YOUTUBE] overflow in unicode buf
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=yoon2lh9Mqk
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=FTKtfT673Yc
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=oWBKSmae89U
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=fPeDVUvGfA4
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=QXI9Y-bCwUM
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=26&max-results=5&orderby=published
[YOUTUBE] CURL Retrun Code : 23
[YOUTUBE] fail to get 0th thumbnail(from:http://i.ytimg.com/vi/yoon2lh9Mqk/2.jpg
)
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] Title: YouTube Videos matching query: BONO
[YOUTUBE] Total Count: 27314
[YOUTUBE] Total Count is too big(Change to 500)
[YOUTUBE] Entry Count: 5
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=GmHzssu5HKI
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=8cLo8FYty8E
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=0N0VGnEbs3c
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=kf_bl8P07oE
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=4jbA-m8DO1Q
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3640 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3640
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3645 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3645
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3553 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3553
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3654 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3654
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3645 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3645
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] Updated URL = http://gdata.youtube.com/feeds/api/videos?vq=%42%4F%4E%4
F&start-index=21&max-results=5&orderby=published
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] Title: YouTube Videos matching query: BONO
[YOUTUBE] Total Count: 27314
[YOUTUBE] Total Count is too big(Change to 500)
[YOUTUBE] Entry Count: 5
[YOUTUBE] overflow in unicode buf
[YOUTUBE] overflow in unicode buf
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=yoon2lh9Mqk
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=FTKtfT673Yc
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=oWBKSmae89U
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=fPeDVUvGfA4
[YOUTUBE] New entry. Report it
[YOUTUBE]       player_url:http://www.youtube.com/watch?v=QXI9Y-bCwUM
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3657 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3657
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3668 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3668
[YOUTUBE] Got Youtube CA Message(d: 6, s: 2, t: 1)
[YOUTUBE] player_stop()
[YOUTUBE] Player is not started
[YOUTUBE] Player URL: http://www.youtube.com/watch?v=FTKtfT673Yc
[YOUTUBE] Duration: 311
[YOUTUBE] VideoAt: 415, 67, 480, 360
[YOUTUBE] Player URL = http://www.youtube.com/watch?v=FTKtfT673Yc
[YOUTUBE] player callback(parsing...) = 554 bytes
[YOUTUBE] player callback(parsing...) = 1418 bytes
[YOUTUBE] found pattern(swfArgs)
[YOUTUBE] player callback(parsing...) = 2107 bytes
[YOUTUBE] found terminate charater
[YOUTUBE] CURL Retrun Code : 23
[YOUTUBE] Video URL: http://www.youtube.com/get_video?video_id=FTKtfT673Yc&t=vjV
Qa1PpcFMmVvW5GpWi_lGxQzjpY0BxwTEsUUmBE7M=
url[http://www.youtube.com/get_video?video_id=FTKtfT673Yc&t=vjVQa1PpcFMmVvW5GpWi
_lGxQzjpY0BxwTEsUUmBE7M=&fmt=18]
Failed to create AF_INET6 socket:
Resolving www.youtube.com for AF_INET...
Connecting to server www.youtube.com[209.85.229.102]:80 ...
==> Request
GET /get_video?video_id=FTKtfT673Yc&t=vjVQa1PpcFMmVvW5GpWi_lGxQzjpY0BxwTEsUUmBE7
M=&fmt=18 HTTP/1.0
Host: www.youtube.com
User-Agent: CIPTV Client
Connection: keep-alive


--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.0]
http minor version: [0]
uri:                [(null)]
method:             [(null)]
status code:        [303]
reason phrase:      [See Other]
body size:          [0]
Fields:
0 - Date: Mon, 20 Jul 2009 22:44:15 GMT
1 - Server: Apache
2 - Content-Length: 0
3 - X-Content-Type-Options: nosniff
4 - Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; do
main=.youtube.com
5 - Set-Cookie: VISITOR_INFO1_LIVE=cHujk0FjUT8; path=/; domain=.youtube.com; ex
pires=Wed, 17-Mar-2010 22:44:15 GMT
6 - Set-Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Thu, 18-
Jul-2019 22:44:15 GMT
7 - Set-Cookie: GEO=7ed0dd1929c20176fdd14c7b726fb49bcwwAAAAyRVNX2cQ6AD/zZEo=; p
ath=/; domain=.youtube.com
8 - Expires: Tue, 27 Apr 1971 19:44:06 EST
9 - X-YouTube-MID: WkFSZzctYUFHdmhDcURVUVJ4d2FfZzhtZzROLWdrVlg5b1ZRMGtJNlViZmp4
WXhUMDZWb0Fn
10 - Cache-Control: no-cache
11 - Location: http://v5.lscache1.googlevideo.com/videoplayback?ip=0.0.0.0&spar
ams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=18&ipbits=0&signature
=D8EE15A0D1EBA55FC1237CA9F58AE1C6CE2AAE78.7512960FED62DE0C575354BE1C9CC13E35424C
F7&sver=3&expire=1248152400&key=yt1&factor=1.25&burst=40&id=1532ad7d3ebbdd87
12 - Connection: Keep-Alive
13 - Content-Type: text/html; charset=utf-8
--- HTTP DEBUG HEADER --- END ---
url[http://v5.lscache1.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexp
ire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=18&ipbits=0&signature=D8EE15A0D1E
BA55FC1237CA9F58AE1C6CE2AAE78.7512960FED62DE0C575354BE1C9CC13E35424CF7&sver=3&ex
pire=1248152400&key=yt1&factor=1.25&burst=40&id=1532ad7d3ebbdd87]
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3679 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3679
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3672 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3672
[YOUTUBE] CURL Retrun Code : 0
[YOUTUBE] success to download thumnbnail(3643 bytes)
[YOUTUBE] New thumbnail. Report it
[YOUTUBE]       thumbnail_length:3643