FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DevOps-Python-tools/jython_autoinstall.exp at master · RecentProgress/DevOps-Python-tools · GitHub
RecentProgress
/
DevOps-Python-tools
Public
forked from
HariSekhon/DevOps-Python-tools
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
DevOps-Python-tools
/
jython_autoinstall.exp
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
47 lines (45 loc) · 1.53 KB
Breadcrumbs
DevOps-Python-tools
/
jython_autoinstall.exp
Copy path
File metadata and controls
executable file
·
47 lines (45 loc) · 1.53 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env expect
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: Fri Jun 17 15:12:17 2016 +0100
#
# https://github.com/harisekhon/devops-python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
set timeout -1
spawn java -jar jython-installer.jar
match_max 100000
expect -exact "Please select your language \[E/g\] >>> "
send -- "\r"
expect -exact "Do you want to read the license agreement now ? \[y/N\] >>> "
send -- "\r"
expect -exact "Do you accept the license agreement ? \[Y/n\] >>> "
send -- "\r"
expect -exact "Please select the installation type \[ 1 /2/3/9\] >>> "
send -- "2\r"
expect -exact "Do you want to install additional parts ? \[y/N\] >>> "
send -- "\r"
expect -exact "Please enter the target directory >>> "
send -- "/opt/jython-2.7.0\r"
expect -exact "Unable to find directory /opt/jython-2.7.0, create it ? \[Y/n\] >>> "
send -- "\r"
expect -exact "Please confirm copying of files to directory /opt/jython-2.7.0 \[Y/n\] >>> "
send -- "\r"
expect -exact "Do you want to show the contents of README ? \[y/N\] >>> "
send -- "\r"
expect eof
Back
|
FazBrowse Home
|
New Git URL