Will this script work?
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    The goal is to rerun Mirrorcopy,
    when it prints out an error.
    This seems to always happend, when an destination directory
    gets deleted, and i dont want to run it 1000 times manually.

    The first problem is, the last skip argument
    causes the if branch to get no endif.
    How can i make it better, can this work anyway?

    I never found much better
    documentation then this one :/

    http://winuaehelp.back2roots.org/background/amigados.htm


    failat 21

    lab DH3
    if exists DH3:disk.info NOREQ
    MirrorCopy FROM DH3: TO BACKUP04:HDs/DH3 ALL BUF=1024
    ;36,2 GB
    endif
    if error
    setenv MirrorCopy2 0
    else
    setenv MirrorCopy2 1
    endif


    if $Mirrorcopy2 EQ 0
    skip DH3 back
    else
    endif


    [ Edited by dIGIMAN on 2007/9/16 23:57 ]
  • »16.09.07 - 20:07
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    judas
    Posts: 175 from 2005/1/14
    From: core of universe
    You shouldn't use skip ... better use while or do..while... something like that should exist.

    Otherwise you could make skip without any condition and place the condition for the exit condition.

    if ... skip exit..
  • »17.09.07 - 18:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dIGIMAN
    Posts: 273 from 2005/11/7
    Ok, thanks.
    I will look on aminet then, as the standard commands
    may not be enough.
    Anyway i will switch to "Backup" from Daniel Westerberg,
    which u can find to on aminet.

    Has lots more features and suits my needs.
  • »17.09.07 - 22:13
    Profile Visit Website