Re: [tcljava-user] extending commands
Brought to you by:
mdejong
From: rahul <ra...@su...> - 2009-08-04 07:12:15
|
| Hi, | | I am using jacl 1.4.1 in a project. I need to extend OpenCmd so that I only allow reading/writing to a specific directory for security reasons. | Since OpenCmd class has package access, I cannot extend it to put this constraint. | | Can someone suggest how to add this restriction to "open" command? use a new interp, and change open to your_restricted_open. See the lappend| loggedAppend here http://tmml.sourceforge.net/doc/tcl/interp.html * You may have eval the args since I dont think {*} is supported in jacl rahul -- 1. e4 _ |