Thanks for the quick reply once more!
Here's what happened when I tried your script:
Received "Invalid parameters" error.
ak@ak-desktop:~$ /usr/lib/jvm/ia32-java-6-sun/jre/bin/java -classpath /home/ak/.juniper_networks/network_connect/NC.jar NC -h vpn.companyvpn.com -L 0 -l 0 -n -t -x
Searching for ncsvc in current working directory
Searching for ncsvc in /home/ak/.juniper_networks/network_connect done.
[>/home/ak/.juniper_networks/network_connect/ncsvc<] [>-l<] [>0<] [>-L<] [>0<] [>-n<] [>-t<] [>-x<] indx = 6
reading form stdin ..
No data within 30 seconds.
Password: <TYPED MY PASSWORD FOR THE VPN>
usage: ncui -h host -u user -p passwd -r realm -f cert_file [-l log_level] [-L log_level]
ncui -h host -c cookies -f cert_file [-l log_level] [-L log_level] [-U sign_in_url]
log_level : 0 : Log Critical messages only
1 : Log Critital and Error messages
2 : Log Critital, Error and Warning messages
3 : Log Critital, Error, Warning and Info messages(default)
4 : Log All Verbose messages
5 : Log All messages
As an eager Linux n00b I'd really like to understand what's going on here.
I'm trying to understand the switches you used, can you explain them? Maybe through that I will find what's missing.