SmartCode Solutions Web Forum




Activate Openvpn connection prior to VNC Connection

Author Message
 Posted Tuesday, January 08, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Wednesday, January 09, 2008
Posts: 2, Visits: 2
Under VNC client settings I have created a script with the following command (openvpn-gui --connect office.ovpn).
The intention is to connect the VPN prior to connecting with VNC.
The command activates and the openvpn connection is made correctly, normally the openvpn gui would close and then the VNC connection should be made.
However at this stage it locks up with the openvpn-gui status window open. No response from Smartcode Manager.
I can only crtl-alt-del and kill the smartcode application.

Any help would be appreciated.

Post #1863
Add to Twitter Add to Facebook
 Posted Wednesday, January 09, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Monday, February 06, 2012
Posts: 1,582, Visits: 2,954
During an action script execution, the VNC Manager launches the script and waits for the launched process to finish. This operation is performed in the main thread. So if launched application stays in memory, the VNC Manager would appear to be hanging, since its main thread is blocked waiting for the application to quit. Most probably this behaviour will be improved, so the VNC Manager wouldn’t hang in such cases.

I took a look at OpenVPN and it looks like a GUI application sitting in the tray. This would explain why the VNC Manager is hanging. This is not the case when you establishing normal VPN connection via rasdial.exe console command.

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
We are looking for investors and business partners. Please contact us for more details

Kindest Regards,
SmartCode Solutions Support

Post #1866
Add to Twitter Add to Facebook
 Posted Wednesday, January 09, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Wednesday, January 09, 2008
Posts: 2, Visits: 2
Support (s-code) (1/9/2008)
During an action script execution, the VNC Manager launches the script and waits for the launched process to finish. This operation is performed in the main thread. So if launched application stays in memory, the VNC Manager would appear to be hanging, since its main thread is blocked waiting for the application to quit. Most probably this behaviour will be improved, so the VNC Manager wouldn’t hang in such cases.

I took a look at OpenVPN and it looks like a GUI application sitting in the tray. This would explain why the VNC Manager is hanging. This is not the case when you establishing normal VPN connection via rasdial.exe console command.

 

OK I understand, I did note that either running the script or a bat file does not close when the connection is made therefore it would lock Smartcode Manager.

Not worry I'll do it manually ie start the openvpn when required.

 

Post #1867
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse