1 of 1 people found this helpful
1. Keep only the main scripts in BL depot. All your functions/libraries on a fixed path on appserver owned by bladmin/appserver user.
In this case, the main scripts can source the functions with full abosulte path , please note that relative path will not work as the script is copied to a temporray area while execution as a NSH job.
If you have multiple appserver, you may have to put this in same path on all appservers.
2. Second option is to add the function scripts/libraries in BL depot.
In this case , as said earlier, the script is copied to a temp location, you need to get File server location for these function scripts, create a directory in your main script in current working directory of the running script, and then copy the function script there and then source it
blcli_execute DepotFile getDBKeyByGroupAndName $DEPOT_FOLDER_NAME $DEPOT_NSH_SCRIPT_NAME
blcli_execute DepotFile getLocation
cp $DEPOTFILELOCATION temp_librairies
Hope this helps.
Thanks Rohit - both options look promising (have not tried yet.)
- I coded 'around' this for now and used simple, one-line 'functions' as replacments - so things still work...