tk-shell interactions and return codes
- From: WillemF <jwhferguson@xxxxxxxxxxxxxxxx>
- Date: Mon, 28 Jul 2008 03:38:25 -0700 (PDT)
I am writing a script to handle some of my backup procedures. Since my
laptop is frequently out of the office I cannot schedule the backups
but I can launch backup using an icon. I use two tk-generated windows,
one to launch the backup (choosing full or incremental backup) and
another to indicate the final result (any error messages or OK status)
after completion of the backup. Since the backup takes quite a bit of
time (~ 20 minutes), the process is controlled with a shell script
that invokes wish at the start and at the end of the process. While
backup is taking place, there is no tk-window open and the shell
script executes. I have 2 questions:
1) Since tcl is a scripting language in its own right it sounds kind
of contorted to have a shell script control the overall process. The
reason I do this is not to have a tk- window open all the time while
the backups are being done. One should be able to do the whole job in
tcl/tk. Are there any references where I could obtain information
about writing a tcl script that opens and closes tk-windows?
2) I am struggling to assign return codes to my tk-windows. Using
"exit 2" brings about a storm of complaints from the interpreter.
basically that "exit 2" is not recognised. Is there a reference I
could consult about this problem?
This beginner's stuff and I am boring most of you, but thanks for your
time anyway.
Kind regards, Willem Ferguson
.
- Follow-Ups:
- Re: tk-shell interactions and return codes
- From: Donal K. Fellows
- Re: tk-shell interactions and return codes
- Prev by Date: Re: Parsing large binary data without huge binary scan command
- Next by Date: Re: how to download a file from webserver
- Previous by thread: Parsing large binary data without huge binary scan command
- Next by thread: Re: tk-shell interactions and return codes
- Index(es):
Relevant Pages
|
Loading