I have the following restore script.
sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub
I use this script on different hardware and sometimes another drive is detected (even though it's empty) causing the restore to simply fail without an error. If I change --f:l2 to --f:l1 it will work in these instances but I'd like a single script to be able to handle both cases.
What would I need to change so that script finds and restores from the correct location?
Thanks in advance
KIWI
How to search for tbi file on USB Stick
-
- Posts: 3634
- Joined: Thu May 05, 2011 10:37 pm
Re: How to search for tbi file on USB Stick
This quickie sample should give you an idea, but since using IFL, just use
the option for IFL to keep the drive booted mounted, then you could just
refer to it under /mnt/image
"UkiwiS" wrote in message news:9836@public.scripting...
I have the following restore script.
sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub
I use this script on different hardware and sometimes another drive is
detected (even though it's empty) causing the restore to simply fail without
an error. If I change --f:l2 to --f:l1 it will work in these instances but
I'd like a single script to be able to handle both cases.
What would I need to change so that script finds and restores from the
correct location?
Thanks in advance
KIWI
the option for IFL to keep the drive booted mounted, then you could just
refer to it under /mnt/image
"UkiwiS" wrote in message news:9836@public.scripting...
I have the following restore script.
sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub
I use this script on different hardware and sometimes another drive is
detected (even though it's empty) causing the restore to simply fail without
an error. If I change --f:l2 to --f:l1 it will work in these instances but
I'd like a single script to be able to handle both cases.
What would I need to change so that script finds and restores from the
correct location?
Thanks in advance
KIWI
- Attachments
-
- schfilesample.zip
- quick sample of searching for a file starting at drive 1 (instead of 0)
- (484 Bytes) Downloaded 1571 times
Re: How to search for tbi file on USB Stick
Thanks very much for your assistance.
KIWI
KIWI