openconnect

TCL Expect kills child of child process

旧街凉风 提交于 2021-01-28 06:06:58
问题 I have an expect script like this #!/usr/bin/expect -f set timeout 30 log_user 0 set PASSWORD $::env(PASSWORD) set USERNAME $::env(USERNAME) set TOKEN $::env(TOKEN) puts stderr "Generating OTP" spawn oathtool --totp $TOKEN expect -re \\d+ set otp $expect_out(0,string) puts stderr "Connecting to VPN server" spawn -ignore HUP env openconnect -b https://vpn expect "GROUP:" send "Tech\n" expect "Username:" send "$USERNAME\n" expect "Password:" send "$PASSWORD\n" expect "Password:" send "$otp\n"

Error cross-compiling openconnect-8.08 for android

笑着哭i 提交于 2020-04-30 09:22:35
问题 When i follow instructions here, i get this error when running latest instruction that is "make": make[1]: Entering directory '/home/fasegiar/Downloads/openconnect-8.08' CC libopenconnect_la-ssl.lo In file included from ssl.c:41: In file included from ./openconnect-internal.h:102: In file included from /usr/include/libxml2/libxml/tree.h:1307: In file included from /usr/include/libxml2/libxml/xmlmemory.h:218: In file included from /usr/include/libxml2/libxml/threads.h:35: In file included from