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.

covid-19.tcl by blackshadow

Help for those learning Tcl or writing their own scripts.
User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

covid-19.tcl by blackshadow

Post by abah »

i am try for openbsd not working and i get error
Tcl error [corona:pub]: wrong # args: should be "tls::socket ?options? host port"
how fixed that problem ?
User avatar
BLaCkShaDoW
Op
Posts: 117
Joined: Sun Jan 11, 2009 4:50 am
Location: Romania
Contact:

covid

Post by BLaCkShaDoW »

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
User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

Re: covid

Post by abah »

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
User avatar
BLaCkShaDoW
Op
Posts: 117
Joined: Sun Jan 11, 2009 4:50 am
Location: Romania
Contact:

Covid

Post by BLaCkShaDoW »

Code: Select all

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
User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

Post by abah »

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
User avatar
CrazyCat
Revered One
Posts: 1216
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

OP said he uses OpenBSD.

I think you have to use sources @ https://core.tcl-lang.org/tcltls/wiki/Download
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

Post by abah »

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
User avatar
CrazyCat
Revered One
Posts: 1216
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

Post by abah »

if the package you mentioned I have installed and even upgraded
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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: Select all

% package require tls
1.6.7
%
Once the game is over, the king and the pawn go back in the same box.
User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

Post by abah »

yes that tls packag version
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Locate this line:

Code: Select all

http::register https 443 [list ::tls::socket -autoservername true]
and replace it with:

Code: Select all

::http::register https 443 tls:socket
and under the 'package require http' line add this code:

Code: Select all

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.
User avatar
abah
Halfop
Posts: 62
Joined: Sun Dec 01, 2013 3:04 am
Location: Indonesia

Post by abah »

work for openbsd that u edit ? or centos
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Post Reply