Ask, and you shall receive. You need to first install the bash_completion RPM:
http://dag.wieers.com/rpm/packages/bash-completion/ Then put the attached file in /etc/bash_completion.d Re-run bash, i.e.: # bash Then cd into oscar/scripts and try: # ./oda <tab> # ./oda list_fields <tab> # ./oda dump <tab> # ./oda restore <tab> etc... It is also possible to limit the dump and restore commands to search for wildcards (eg. *.dump) and in specific directories as well... Please let me know if you would like further enhancements. It would be neat to be able to include bash_completion in OSCAR base... Enjoy! Bernard On 2/1/07, DongInn Kim <[EMAIL PROTECTED]> wrote:
Hi Bernard, I've looked at the web site but I wonder if I can do this auto-completion (the document seems not clear to me :-( ). It would be nice if we can use it though. Does anyone want to try to set this up? Regards, - DongInn Bernard Li wrote: > You might consider adding support for bash_completion: > > http://www.caliban.org/bash/ > > This will allow oda commands to be auto-completed. Though at present > the only command that would be helpful is "list_fields". > > Cheers, > > Bernard > > On 2/1/07, Bernard Li <[EMAIL PROTECTED]> wrote: > >> Nitfy. >> >> On 2/1/07, DongInn Kim <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> I have tried to create a command line interface for the simple ODA commands. >>> This is available on trunk/scripts/oda but if there is any other better >>> places to put it, please let me know. >>> >>> The commands that we can use in scripts/oda are >>> ./oda [options] dump >>> ./oda [options] restore [DUMP FILE] >>> ./oda [options] create_database >>> ./oda [options] drop_database >>> ./oda [options] list_databases >>> ./oda [options] list_fields TABLE >>> ./oda [options] list_tables >>> >>> Or you can do this thing in the interactive mode. If you just type in >>> "$OSCAR_HOME/scripts/oda", "oda>" prompt will show up. >>> And then type in one of the following simple command lines. >>> dump >>> restore [DUMP FILE] >>> create_database >>> drop_database >>> list_databases >>> list_fields TABLE >>> list_tables >>> >>> I tried to cover all the possible interactive situations in here but it >>> may not work properly. If you find anything weird/wrong, please let me know. >>> >>> Regards, >>> >>> -- >>> - DongInn >>> >>> >>> ------------------------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, security? >>> Get stuff done quickly with pre-integrated technology to make your job easier. >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Oscar-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/oscar-devel >>> >>> > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Oscar-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oscar-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
oda
Description: Binary data
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
