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.

getpwd usage examples?

Help for those learning Tcl or writing their own scripts.
Post Reply
d
dmg
Voice
Posts: 5
Joined: Mon Apr 20, 2009 8:21 pm

getpwd usage examples?

Post by dmg »

Trying to find some example code using getpwd but it seems to be a command lesser used...

I'm well aware that the command could be used with a bind - <command>...
but could it be used in some other way? Say... If i wanted a script to do something when a user enters a certain directory....

Any help appreciated :)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I guess you'd have to replace or piggyback one or more of the FIL bindings and test whether the user is currently in, or heading to, that special directory. You might be able to use the FILT binding for piggybacking, but I havn't tried that myself.
NML_375
Post Reply