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.

Help on tcl 'possibility'

Old posts that have not been replied to for several years.
Locked
P
Peanut

Post by Peanut »

Hi,

I've seen some of the posts for ppl wanting effectively everything coded for them. I aint after that. All I'd like to know is if it's possible in tcl to make an external call to the Operating System to check the contents of a directory.
Alternatively to see if there is already a cmd in tcl which can do this.

Would be v. appreciative if someone could let me know the cmd and rough syntax please.
Thanks,
PNut.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

There is a builtin command called glob that can list directory contents.

You can also use exec to call programs like "ls -la /pics/sheep" or whatever.

See http://dev.scriptics.com/man/tcl8.3/TclCmd/contents.htm for syntax, options, etc.
P
Peanut

Post by Peanut »

Muchos Gracias. I'll give it a bash.

ls -al /pics/fluffy_sheep......please I only have the finest fluffies on my box.

:smile:

<font size=-1>[ This Message was edited by: Peanut on 2002-03-13 10:12 ]</font>
Locked