PDA

View Full Version : 5.2.14


darkone
11-03-2003, 08:06 AM
All:
- New: Tcl commands
- Change: Unregistered version will not initialize properly, if executable has been renamed

TCL:

USER
CREATE <UserName>
- Returns >= 0 on success (user id)
DELETE <UserName>
- Returns 0 on success
RENAME <UserName> <NewUserName>
- Returns 0 on success

GROUP
CREATE <GroupName>
- Returns >= 0 on success (group id)
DELETE <GroupName>
- Returns 0 on success
RENAME <GroupName> <NewGroupName>
- Returns 0 on success

USERFILE
OPEN <UserName>
- Returns 0 on success
LOCK
- Returns 0 on success
UNLOCK
- Returns 0 on success
ASCII2BIN <String>
- Retruns 0 on success, string contains userfile in ascii format (userfile must be locked, or command will fail!)
BIN2ASCII
- Returns userfile in ascii format on success
RELOAD
- Updates cache
ISOPEN
- Returns user id of currently open userfile

GROUPFILE
OPEN <GroupName>
- Returns 0 on success
LOCK
- Returns 0 on success
UNLOCK
- Returns 0 on success
ASCII2BIN <String>
- Retruns 0 on success, string contains groupfile in ascii format (groupfile must be locked, or command will fail!)
BIN2ASCII
- Returns groupfile in ascii format on success
ISOPEN
- Returns group id of currently open groupfile

TIMER <TimeOut> <Event>
- Returns 0 on success, event uses same format as events in ini (TCL ../scripts/timerproc.itcl)

SHA1 <String>
- Returns sha1 hash for string on success

MOUNTFILE
OPEN <FileName>
- Returns 0 on success

CLIENT
WHO INIT <arg1> ... <argN>
* Valid arguments are: REALPATH, REALDATAPATH, VIRTUALPATH, VIRTUALDATAPATH, TRANSFERSPEED, TRANSFERSIZE, STATUS, LOGINTIME, TIMEIDLE, HOSTNAME, IDENT, IP, UID, CID
- Returns 0 on success
WHO FETCH
- On success returns list of selected items, in selected order (use lindex to extract)

wooolF[RM]
11-03-2003, 09:46 AM
sounds great... I'm sure peeps with the right knowledge will be more then happy to use this :p

b>d>>s
11-03-2003, 05:45 PM
thanks,

so with MOUNTFILE, this will return error if a file is already open (MOUNTed) by another iTCL ? and this can be used on any file ?

dasOp
11-03-2003, 06:10 PM
In the userfile.h struct, mountfile is .vfs file and nothing else. So I doubt it has anything to do with file locking per se.

PaJa
11-03-2003, 08:24 PM
Originally posted by wooolF[RM]
sounds great... I'm sure peeps with the right knowledge will be more then happy to use this :p

Yeah!!! Great!!! Thanx d1 ;)

darkone
11-04-2003, 03:44 AM
Originally posted by b&gt;d&gt;&gt;s
thanks,

so with MOUNTFILE, this will return error if a file is already open (MOUNTed) by another iTCL ? and this can be used on any file ?

No mountfile returns only error when it can't be opened/is not valid. It will replace the current mountfile (if any) for the itcl instance (and resolve, will be using it over the user's current mountfile)