[DONE] Run script on connect

Feature requests and their debate

[DONE] Run script on connect

Postby sandman42 » Wed Oct 12, 2011 8:34 am

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
sandman42
 
Posts: 14
Joined: Wed Oct 12, 2011 8:31 am

Re: Run script on connect

Postby Serge » Fri Oct 14, 2011 11:08 am

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!
Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: Run script on connect

Postby sandman42 » Mon Oct 17, 2011 2:05 pm

sandman42
 
Posts: 14
Joined: Wed Oct 12, 2011 8:31 am

Re: Run script on connect

Postby Serge » Mon Oct 17, 2011 7:56 pm

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 ;)
Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: Run script on connect

Postby sandman42 » Tue Oct 18, 2011 10:12 am

sandman42
 
Posts: 14
Joined: Wed Oct 12, 2011 8:31 am

Re: Run script on connect

Postby Serge » Tue Oct 18, 2011 7:41 pm

Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: Run script on connect

Postby sandman42 » Wed Oct 19, 2011 11:41 am

sandman42
 
Posts: 14
Joined: Wed Oct 12, 2011 8:31 am

Re: Run script on connect

Postby Serge » Wed Oct 26, 2011 2:22 pm

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.
Serge
 
Posts: 1526
Joined: Sat Feb 26, 2011 8:24 pm
Location: SPb

Re: Run script on connect

Postby sandman42 » Sat Nov 05, 2011 3:17 pm

sandman42
 
Posts: 14
Joined: Wed Oct 12, 2011 8:31 am


Return to Feature Requests



Who is online

Users browsing this forum: No registered users and 8 guests