Viscosity Task Scheduler Commands

Got a problem with Viscosity or need help? Ask here!

bobby_holla

Posts: 3
Joined: Tue Jun 13, 2017 11:23 pm

Post by bobby_holla » Fri Sep 29, 2017 6:25 pm
Hi, I did set Viscosity Client to run through Task Scheduler which works perfect with no issue. but i need help with a command line to add under the argument or start in section that will trigger a certain action to Viscosity with event logs that was generated from event viewer
Example. when my connection interrupts and Viscosity fails to reconnect i need a command that will trigger an event to ensure that viscosity is connected to my server. hope am well understood?

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Tue Oct 03, 2017 8:21 am
Hi bobby_holla,

I'm afraid Viscosity has nothing built in that will be able to trigger events like this. You would need to make a script that asks Viscosity on the status of a connection every minute for example and then generate the event yourself.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

bobby_holla

Posts: 3
Joined: Tue Jun 13, 2017 11:23 pm

Post by bobby_holla » Tue Oct 03, 2017 9:21 am
Ok i get it. i can generate events ID myself, but can you help with me a command scripts that will run repeatedly to reconnect if my network disconnects and Viscosity fails to reconnect. and a script that will trigger each time i connect to a wifi and whenever a network is available on my PC.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Tue Oct 03, 2017 11:38 am
Hi bobby_holla,

This isn't really something you can script. I believe Windows Task Scheduler has options to trigger a script or event when you connect to a network, you may wish to look there, otherwise you will need to develop a script or program that is constantly running to monitor your network, this isn't really something we can help you with as you'll need to know what you're doing and invest a decent amount of time developing and testing any method you use.

If Viscosity is failing to reconnect after a drop out, I recommend you check the log for why this is happening and try to fix the problem there rather than brute forcing a reconnect as you can create other problems doing so.

Regards,
eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

bobby_holla

Posts: 3
Joined: Tue Jun 13, 2017 11:23 pm

Post by bobby_holla » Tue Oct 03, 2017 4:03 pm
Ok thank you for your support
5 posts Page 1 of 1