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.

How can i let a Eggdrop do ls (list dir in Unix)

Old posts that have not been replied to for several years.
Locked
V
Vosje

Post by Vosje »

Hello,

How can i view trou an eggdrop, the list
of files in a directory, where i store
files with that eggdrop ([open filename w]).

Or must i use [catch {exec ls} buff]?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I am unsure what version of Tcl it was added in, but the glob command will allow you to list the file in a directory.
V
Vosje

Post by Vosje »

Yes i know,

but i will see all names that i create in that dir
how can i do that (same as you do ls on linux) if that is possible
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

HMM, OK, and the "glob" command doesn't do that. Guess that means this perfectly work Tcl I have here, showing me my directory output at this second, is not working. ODD
Locked