I've created a perl script that creates a vpn connection, I call the
vpn connection with the perl system function eg.
system("vpnclient connect company_lan") ;
With the system function, the perl script will not continue until I
stop the vpn connection. When I stop the vpn connection then the perl
script continues which does a whole bunch of post vpn clean up.
My question is; how do I keep my perl script from dying if my shell
window accidentally closes while my perl script is paused at the
system function portion of my script? If for some reason my shell
window closes while it's running my vpn connection, then my perl
script dies and will not have a chance to do any post vpn clean up
stuff that's it's programmed to do.