Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Modify a file in a starpack

7 views
Skip to first unread message

Johan

unread,
May 6, 2004, 6:47:59 AM5/6/04
to
Hi group,

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

Jeff Hobbs

unread,
May 7, 2004, 2:18:35 AM5/7/04
to
Johan wrote:

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

lvi...@yahoo.com

unread,
May 7, 2004, 8:48:35 AM5/7/04
to

According to Johan <johan.v...@thomson.net>:
: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 ?

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/ >

John Seal

unread,
Dec 1, 2004, 3:27:02 PM12/1/04
to
Johan wrote:

> 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.

Robert Seeger

unread,
Dec 1, 2004, 3:43:49 PM12/1/04
to
It is worth noting, however, that many OSes will not allow you to modify
the currently running binary. This means you cannot (easily) modify the
contents of a starpack if thats te executable you want to make the
change with.

There are ways, but they involve renaming the file and such. The wiki
may have details on it.

Rob Seeger

0 new messages