From: ccc31807 on
This is an automated Cisco VPN login using the Cisco command line
vpnclient. Help is here:
http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client500_501/administration/5vcAch8.pdf
The CLI syntax is follows:

C:\Program Files\Cisco Systems\VPN Client> vpnclient connect PROFILE
USERNAME PASSWORD<ret>

Formally, my script would execute this:
- system("vpnclient connect MCVPN USERNAME PASSWORD");
which would give the following message:
- Your VPN connection is secure.

The Networking Gods have now implemented a FERPA warning, which
contains the following statement:
- ... complies with the FERPA Act of 1974 ...
- Do you wish to continue? (y/n):
On the command line, I enter a 'Y' with the same results as before.

But now my script hangs. I can type a 'Y' manually and log in, but
that requires me to be at the keyboard every time the script runs. If
I were here, I wouldn't need the script.

I've tried the 'print "y\n";' trick, tried IO::Handle, IO::Socket,
looked at Expect, but nothing as yet has worked. The login doesn't
respond to any attempt at creating any kind of socket object, but only
to the Cisco vpnclient command.

I'm working on a Windows client running ActiveState Perl 5.12.

Ideas?

Thanks, CC.