egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

covid-19.tcl by blackshadow
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Wed Apr 01, 2020 10:16 am    Post subject: covid-19.tcl by blackshadow Reply with quote

i am try for openbsd not working and i get error
Quote:

Tcl error [corona:pub]: wrong # args: should be "tls::socket ?options? host port"

how fixed that problem ?
Back to top
View user's profile Send private message
BLaCkShaDoW
Op


Joined: 11 Jan 2009
Posts: 115
Location: Romania

PostPosted: Wed Apr 01, 2020 5:14 pm    Post subject: covid Reply with quote

https://www.tclscripts.net/files/file/64-covid19tcl/

Check here, there some stepts regarding instalation of the latest tls package.
_________________
BLaCkShaDoW Production @ WwW.TclScripts.Net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Thu Apr 02, 2020 3:50 am    Post subject: Re: covid Reply with quote

BLaCkShaDoW wrote:
https://www.tclscripts.net/files/file/64-covid19tcl/

Check here, there some stepts regarding instalation of the latest tls package.

you are site is down n i cannot access that site
Back to top
View user's profile Send private message
BLaCkShaDoW
Op


Joined: 11 Jan 2009
Posts: 115
Location: Romania

PostPosted: Thu Apr 02, 2020 4:14 am    Post subject: Covid Reply with quote

Code:
If you want to install the latest tls to work :

First remove the tls-tcl (if installed)

sudo apt remove tls-tcl

For Ubuntu/Debian X64

wget http://archive.ubuntu.com/ubuntu/pool/universe/t/tcltls/tcl-tls_1.7.18-2_amd64.deb

For Ubuntu/Debian X86

wget http://archive.ubuntu.com/ubuntu/pool/universe/t/tcltls/tcl-tls_1.7.18-2_i386.deb

Then:

sudo dpkg -i <deb package>

_________________
BLaCkShaDoW Production @ WwW.TclScripts.Net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Thu Apr 02, 2020 4:21 am    Post subject: Reply with quote

if in ubuntu, it will not work when autocovid is activated and I forgot that on Centos 7 64 bit it doesn't work like OpenBSD
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Thu Apr 02, 2020 4:22 am    Post subject: Reply with quote

OP said he uses OpenBSD.

I think you have to use sources @ https://core.tcl-lang.org/tcltls/wiki/Download
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Apr 02, 2020 4:26 am    Post subject: Reply with quote

The package you are looking for is 'tcl-tls' not 'tls-tcl' and you don't need to remove anything, just install it if you don't have it.

On Ubuntu last version is 1.6.7+dfsg-1.2build1.

Oh, and if you are on CentOS then use 'yum install tcl-tls'
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Thu Apr 02, 2020 5:01 am    Post subject: Reply with quote

caesar wrote:
Oh, and if you are on CentOS then use 'yum install tcl-tls'

No package tcl-tls available can u give me link for download
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Thu Apr 02, 2020 5:40 am    Post subject: Reply with quote

Peharps https://stackoverflow.com/questions/53387753/yum-install-tcltls-give-error-no-package-tcltls-available-on-centos may help ?
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Thu Apr 02, 2020 5:52 am    Post subject: Reply with quote

CrazyCat wrote:
Peharps https://stackoverflow.com/questions/53387753/yum-install-tcltls-give-error-no-package-tcltls-available-on-centos may help ?

if the package you mentioned I have installed and even upgraded
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Apr 02, 2020 5:59 am    Post subject: Reply with quote

Connect to your shell and type 'tclsh' then 'package require tls' and post here what result you get. Oh, and to exit type 'exit' and press Enter.

You should get something like this:
Code:

% package require tls
1.6.7
%

_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Thu Apr 02, 2020 6:06 am    Post subject: Reply with quote

yes that tls packag version
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Apr 02, 2020 7:30 am    Post subject: Reply with quote

Locate this line:
Code:

http::register https 443 [list ::tls::socket -autoservername true]

and replace it with:
Code:

::http::register https 443 tls:socket

and under the 'package require http' line add this code:
Code:

proc tls:socket args {
   set opts [lrange $args 0 end-2]
   set host [lindex $args end-1]
   set port [lindex $args end]
   ::tls::socket -servername $host {*}$opts $host $port
}

_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
abah
Halfop


Joined: 01 Dec 2013
Posts: 61
Location: Indonesia

PostPosted: Thu Apr 02, 2020 8:36 am    Post subject: Reply with quote

work for openbsd that u edit ? or centos
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Apr 02, 2020 8:59 am    Post subject: Reply with quote

I got Ubuntu, can't tell but it should.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber