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.

Cleanscript with expr unixtime little help needed

Old posts that have not been replied to for several years.
Locked
B
BiLL
Halfop
Posts: 78
Joined: Wed Sep 26, 2001 8:00 pm
Location: Germany

Cleanscript with expr unixtime little help needed

Post by BiLL »

Hi,

I got the cleanup.tcl from the TCL-Archive.
It deleted all users that hasnt been seen last 60days.

if {[lindex [getuser $hand LASTON] 0] < [expr [unixtime] -
5184000]} {

This is the line.

How can I set the unixtime so it checks last 30 or 40 days.
I dont know the number for that :-(.

Please help, thanks.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Re: Cleanscript with expr unixtime little help needed

Post by egghead »

BiLL wrote:Hi,

I got the cleanup.tcl from the TCL-Archive.
It deleted all users that hasnt been seen last 60days.

if {[lindex [getuser $hand LASTON] 0] < [expr [unixtime] -
5184000]} {

This is the line.

How can I set the unixtime so it checks last 30 or 40 days.
I dont know the number for that :-(.

Please help, thanks.
5184000 seconds... 5184000/60/60/24 = 60 days

It should not be that difficult to figure out how many seconds there are in 30 or 40 days.
B
BiLL
Halfop
Posts: 78
Joined: Wed Sep 26, 2001 8:00 pm
Location: Germany

Post by BiLL »

Oh lol
I didnt notice that this number are seconds.
Else I wouldnt open topic for that.

Thanks.
Sorry :)
Locked