Folks,
I have written a simple script (menu) that allows a user to switch
between instances within a server. In addition to executing the
appropriate db2profile, the script changes the user's prompt so it
points to the new instance. The script works fine so long as I invoke
it using ". menu" . I'd like to run it using 'menu'. Is there a way I
can do that?
Example (user enters "menu")
Instances on Development Server
1. development
2. Federated
3. Crystal Report
4. DBA test
Enter Option: 1
The prompt should look "DEVL:/home/user>".
Appreciate your help.
Ivan
******************NOTICE*******************
This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s) only and may contain privileged, confidential, work-product and/or trade secret information of a proprietary nature. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use, distribution or re-transmission of this e-mail or any attachment(s) is strictly prohibited and that all rights of the sender and/or intended recipients are hereby reserved without prejudice thereto.
DB2 & UDB email list listserv db2-l LazyDBA home page