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.

list

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

list

Post by caesar »

First thing first. I have managed myself to get the lenght of "/mnt/multimedia/hollywood" from "/mnt/multimedia/hollywood" like this:

set db(dir) "/mnt/multimedia/hollywood"
set db(length) "[expr [string length $db(dir)] - [llength [split $db(dir) "/"]]]"

I'm stuck in here:
catch { glob -type d $db(dir)/* } dirs
set dir [string range $dr [expr [string length files]+$db(lenght)] end]
lappend text $dirs
set list [lsort -dictionary $text]
}

Notice the 'files', was an dir and there should be "/mnt/multimedia/hollywood" but is not working, I'm getting a error, when I replace it. This thing is not getting corectly the date and time of the dir using: [clock format [file atime "$db(dir)/${film}"] -format {%A, %d %B %Y}] it makes this time the date and time of the html file created, in wich this are used.. I don't have a clue what is wrong there.
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Can I ask what you are trying to do in general.

From your code, it is allmost entirly confusing.

You are aksing multiple questions, on topics, you don't entirly referance.

IE, you say you wnat one thing, but your examples don't show anything like what you would expect to do such a task.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

We have talked about this before, here is the *discution*: http://forum.egghelp.org/viewtopic.php? ... ht=alfabet
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Can we try to keep things under one topic then please.

On top, it doesn't answer the question, or what is this support to do.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I'm using this to generate a web page with the content of a directory.
Once the game is over, the king and the pawn go back in the same box.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Also, here can be found the complete tcl file of what I'm doing/want to do.
Once the game is over, the king and the pawn go back in the same box.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Is this against the forum rules or something like this?
Once the game is over, the king and the pawn go back in the same box.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Are you avoiding to answer this topic or I'm wrong and simple you don't know (hard to belive this one) or don't want to tell me what is wrong with the date and time of the files, or you are mad on me or something like this?
Once the game is over, the king and the pawn go back in the same box.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Anyway, figured out an *fix* for this: [clock format [file mtime "$db(dir)/${film}"] -format {%A, %d %B %Y}]

Thanks anyway.
Once the game is over, the king and the pawn go back in the same box.
Locked