Hi,

I have an expect code like below. When executing it spawn VPN process and
disconnect/kill the VPN process after except block. I want to keep that VPN
process running even after except block. How to do this ? See
http://dpaste.com/27D17Y4

expect -c "            ##Enable debug mode            #exp_internal 1
          #set timeout 60            spawn sudo openconnect -b -u
$username -s /etc/vpnc/vpnc-script $vpnip            expect "view:"
        send \"yes\r\"            expect "mycompany]:"            send
\"mycompany\r\"            expect "Password:"            send
\"$vpnpassword\r\"            ##To Get console after SSH
interact            ##close except            #expect eof            "





Regards
Saju Madhavan
+91 09535134654

-- 
-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to ilug-tvm@googlegroups.com
To unsubscribe from this group, send email to
ilug-tvm-unsubscr...@googlegroups.com



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Free 
Software Users Group,  Thiruvananthapuram" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ilug-tvm+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to