Re: Restart an application
- From: "slebetman@xxxxxxxxx" <slebetman@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 16:02:25 -0700
On Oct 31, 2:03 am, "Rasmus Debitsch" <Debit...@xxxxxxxxxxx> wrote:
Hello,
I have a tcl/tk application that should exit and restart itself. This is
some kind of "reset" for the program. The application runs on Linux and
Windows. The Linux box has very limited input devices, therefore I must
invoke the restart from my running application itself. After stopping my
application there is no chance for the user to interact with the system any
more - he can reboot only.
Is there a known solution for this problem? I'm searching for a platform
independent solution. If no such solution exists, an "if
{$tcl_plaform(platform) == ..." based solution is fine too.
Just exec yourself and exit. Works on all platforms I tried it on. Any
problem with that?
If this is a script then:
exec [info nameofexecutable] [info script]
exit
If this is a wrapped app (freewrap or starpack) then just:
exec [info nameofexecutable]
exit
Pass command line arguments as necessary.
.
- Follow-Ups:
- Re: Restart an application
- From: Rasmus Debitsch
- Re: Restart an application
- From: Darren New
- Re: Restart an application
- References:
- Restart an application
- From: Rasmus Debitsch
- Restart an application
- Prev by Date: Re: Standard DBI Proposal
- Next by Date: Re: Problem VFS and packages require
- Previous by thread: Restart an application
- Next by thread: Re: Restart an application
- Index(es):
Relevant Pages
|