This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

kernel.tcl script

Old posts that have not been replied to for several years.
Locked
3
3zzy
Halfop
Posts: 42
Joined: Sun Sep 14, 2003 6:58 am

kernel.tcl script

Post by 3zzy »

The one in the tcl scripts section stopped working recently.. =(
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Does it give you any errors? what did it do and what does it do now exactly? :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
3
3zzy
Halfop
Posts: 42
Joined: Sun Sep 14, 2003 6:58 am

Post by 3zzy »

It's a skript that took the info about the latest linux kernels from http://www.kernel.org . It doesn't give any errors or anything at all, nothing happens. Before it used to send the info vie notice.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

please post a link to the script. the site it contacts has probably changed the way it works therfore the script is requesting the wrong information.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
3
3zzy
Halfop
Posts: 42
Joined: Sun Sep 14, 2003 6:58 am

Post by 3zzy »

http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=177


kernel.tcl
-
-
CyberBrown
27
Fetches info about the last kernel with the command "finger @www.kernel.org" and displays it on the channel.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Right then i looked at the script and did manually what it was doing for you here is the results.
*** Looking up www.kernel.org
*** Connecting to 204.152.189.116
*** Connection established
The latest stable version of the Linux kernel is: 2.4.22
The latest prepatch for the stable Linux kernel tree is: 2.4.23-pre5
The latest snapshot for the stable Linux kernel tree is: 2.4.22-bk25
The latest beta version of the Linux kernel is: 2.6.0-test5
The latest snapshot for the beta Linux kernel tree is: 2.6.0-test5-bk14
The latest 2.2 version of the Linux kernel is: 2.2.25
The latest 2.0 version of the Linux kernel is: 2.0.39
The latest prepatch for the 2.0 Linux kernel tree is: 2.0.40-rc6
The latest -ac patch to the stable Linux kernels is: 2.4.22-ac4
The latest -ac patch to the beta Linux kernels is: 2.6.0-test1-ac3
*** ERROR: (WSAECONNABORTED) Software caused a connection abort

*** Looking up www.kernel.org
*** Connecting to 204.152.189.116
*** Connection established
*** Connection closed
It seemed to cut me off half way through the list the first time. then the second time i tried it, it ignored me completely.

Its not the script it works fine its the site. Try contacting their admin about it.
webmaster@kernel.org or support@kernel.org should hopefully put you in touch with the right people.

^DooM^ :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
3
3zzy
Halfop
Posts: 42
Joined: Sun Sep 14, 2003 6:58 am

Post by 3zzy »

Right, I have sent them and e-mail, now waiting for reply. Thanks for the help!
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

From http://www.kernel.org :
August 21, 2003: Please don't use finger.kernel.org for any sort of automatic monitoring. The number of automatic bots hitting this port is causing the finger daemon to shut down more often than not. The same information is available from http://www.kernel.org/kdist/finger_banner.
Note that kernel.tcl uses finger to retrieve the info.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

An attempt to fix this problem can be found on:

http://members.fortunecity.com/eggheadtcl/ -> kernel.org.tcl.txt

The script can either use HTTP (default) or finger.
Last edited by egghead on Sun Sep 28, 2003 10:41 am, edited 1 time in total.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

egghead, that is how i tried to retrieve the information in my previous post with finger command. I guess too many people are using that script which has forced them to shut down any finger requests in the future.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Actually finger works fine for me. But yes, they advise to use http instead of finger.
3
3zzy
Halfop
Posts: 42
Joined: Sun Sep 14, 2003 6:58 am

Post by 3zzy »

egghead
Is there any way to make your script notice the results to a user, not give them off to channel ?
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

3zzy wrote:egghead
Is there any way to make your script notice the results to a user, not give them off to channel ?
A hack is possible. If you want the results being messaged to the user who triggered the request, you need to make 2 modifications.

1. Change

Code: Select all

set chan [string tolower $chan]
to

Code: Select all

set chan [string tolower $nick]
2. Change

Code: Select all

if { ![validchan $channel] } { continue }
to

Code: Select all

### if { ![validchan $channel] } { continue }
or remove that line at all.
3
3zzy
Halfop
Posts: 42
Joined: Sun Sep 14, 2003 6:58 am

Post by 3zzy »

Thanks, It worked great!
Locked