tk-shell interactions and return codes



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
.



Relevant Pages

  • Feedback on backup script
    ... The one problem I have is that the script keeps stopping at lines 633,635 and or 637 with the error "Path Not Found" I have emailed the original author for help but haven't heard back yet. ... I was just wondering if the problem could be that the account running the script doesn't have correct permissions to a share/directory/file that it's trying to backup? ... ' always one less than the actual number of folders. ... ' Show the user free space info on all available disk drives ...
    (microsoft.public.scripting.vbscript)
  • Re: Enterprise Manager Newbie Question
    ... a SQL backup is not a simple copy of the database files. ... Is it possible to write a script that one could run from a workstation and ...
    (microsoft.public.sqlserver.tools)
  • Re: xcopy and vbscript
    ... It takes about 5-6 minutes to backup approximately ... A copy of the script is below for reference. ... ObjShell.Popup strMessage, 5, "Backup Complete", OK_Button ... Dim sSrc, sDest ' as string ...
    (microsoft.public.scripting.vbscript)
  • Re: How do I move an account... A few more details... and more
    ... >> use this system as a backup system if the first ever goes down. ... >> rsync for this. ... >serv1 and the system you back up to is fs. ... >rsync script. ...
    (Fedora)
  • Re: Maintain backup directory
    ... When I run the script (after setting target to the right ... the backup media runs out of ... Remove the word "echo" from Line #18 to enable the file deletion. ...
    (microsoft.public.scripting.wsh)

Loading