-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunPatCpy.do
More file actions
36 lines (31 loc) · 1.2 KB
/
RunPatCpy.do
File metadata and controls
36 lines (31 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; @file
;;; @author Terry Ebdon
;;; @date 13-MAY-2019
;;; @copyright Terry Ebdon, 2019
;;; Licensed under the Apache License, Version 2.0
;;; See the README.md and LICENSE files for details.
;;;
;;; @brief Copy packages, from tape to disk, with PATCPY.
;;; @arg %1 Device distribution kit is mounted on.
;;; @arg %2 PPN containing distribution kit.
do common/SetVars.do
if "%1" == "" set env msg=echo ?arg 1 should be the device ID for distribution kit
if "%2" == "" set env msg=echo ?arg 2 should PPN the for distribution kit
if "%msg%" != "" %msg%; return
set env distroDevice=%1
set env distroPpn=%2
expect "?Program lost-Sorry\r\n" noexpect; set env msg=echo ?Couldn't run PATCPY
send "run %distroDevice%PATCPY\r"
expect "Enter distribution device/PPN" send "%distroDevice%%distroPpn%\r"; go
expect "Enter output device/PPN" send "SY:[200,200]\r"; go
expect "Attempt to create account SY:[200,200]" send "YES\r"; go
expect "Packages to patch?" send "ALL\r"; go
expect "Logically Dismount %distroDevice%" send "NO\r"; go
%expectReady%
go
if "%msg%" != "" ignore; %msg%
; Only asked if [200,200] doesn't already exist.
;
noexpect "Attempt to create account SY:[200,200]"
set env distroDevice
set env distroPpn