I've build an application with Tcl and wrapped it to a starpack which I
can execute on another machine. But on this machine, I need to alter the
content of a config file which is included in the starpack.
Is there an easy way to do this ?
Regards,
Johan
From outside the starpack, yes, as you can just mount it, modify
the file (writing modified version into the starpack vfs) and
unmount - that's it.
From inside ... you need to essentially make a copy of yourself
and modify that.
--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos
Make certain that you create the starkit (and starpack) as writable -
the default is read only.
--
<URL: http://wiki.tcl.tk/ > In God we trust.
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvi...@yahoo.com > <URL: http://www.purl.org/NET/lvirden/ >
> I need to alter the
> content of a config file which is included in the starpack.
>
> Is there an easy way to do this ?
Yes, just include the "-writeable" switch when wrapping the starpack. I
recently had this very problem, and researched it on the wiki. In spite
of the comment by "male" on http://mini.net/tcl/4080, it seems to work
fine with starpacks as well as starkits, at least with an 8.4.2 tclkit
on Win2K.
There are ways, but they involve renaming the file and such. The wiki
may have details on it.
Rob Seeger