Page 1 of 1

[DONE] Run script on connect

PostPosted: Wed Oct 12, 2011 8:34 am
by sandman42
Hi,

would it be possible to add a Run command on connect?

This would be useful because I can reach some DBs using an ISDN line, therefore it would be useful for me to have a ping -t destination_ip running.

To make it simple, you may add a way to run a script, and it's up to the user to write it.

Ciao

Re: Run script on connect

PostPosted: Fri Oct 14, 2011 11:08 am
by Serge
Hi!

Generally it is an easy to implement feature. We can add extra parameter in connection wizard where custom shell script/command may be specified.
But I do not completely understand how could it be helpfull? Could you explain it a little bit more?

Do you need just ot execute some script and ignore it's execution result?
Or do you need to see a console window with results?
Or you need some interaction with this script?
Or may be such script returns result code which can be analysed..

Thanks!

Re: Run script on connect

PostPosted: Mon Oct 17, 2011 2:05 pm
by sandman42

Re: Run script on connect

PostPosted: Mon Oct 17, 2011 7:56 pm
by Serge
Ok.
Probably we'll include this feature (in simple form - script execution wihout any interaction) in the following version. I hope it'll be ready this month.

To make something more complex we need more detailed feature requests - I don't think it's a good idea to make features without a confidence that it is really needed by someone :)

BTW while we have thousands of direct downloads we lack feedbacks (quite common situation in software development). I guess less than 0.5% of people writes anything (bugs or requests) to support even if they really need some features.
So, thanks for request ;)

Re: Run script on connect

PostPosted: Tue Oct 18, 2011 10:12 am
by sandman42

Re: Run script on connect

PostPosted: Tue Oct 18, 2011 7:41 pm
by Serge

Re: Run script on connect

PostPosted: Wed Oct 19, 2011 11:41 am
by sandman42

Re: Run script on connect

PostPosted: Wed Oct 26, 2011 2:22 pm
by Serge
Scripts execution feature added in 1.4.3.
On second page of connection wizard click on Events button and configure scripts which have to be executed on connect/disconnect.
This feature is not yet fully tested. Next major version will contain fixes and documentation for it.
Samples (for your specific case):
Windows - cmd /C start cmd /C ping -t ${host}
Linux - xterm -e ping ${host}

Note: you may use variables in command line. Currently supported variables: host, port, server. database,user, password, url.

Re: Run script on connect

PostPosted: Sat Nov 05, 2011 3:17 pm
by sandman42