/export/home/bob/.batch2/bltrcThe format of the file is korn shell, the file is simply read into the default process before either program gets to an execution point. During initial setup of BatchLogin, a fairly generic version of this file is written. As users advance (read, get annoyed with default behavior), they may wish to alter this file extensively.
This document explains some of the more common settings available.
# # Written by /opt/fericyde/bl2/batchlogin on Thu Mar 25 13:22:57 EST 2004 # DEFAULTLIST=myservers.blf SCRIPT=SHELL.exp TERMLOGIN=termstart.sh PWUPDEF=c PWUPTIME=5 BL_COLOR="WB" # Turn off display for non blt sessions # NODISPLAY=YES #The above example bltrc demonstrates fairly straightforward shell script syntax. Note that part of the magic of what's going on with these settings involves the fact that BatchLogin is exporting the variables so that sub-processes "see" them. The general syntax is:
It's important to note that the above variables control the behavior of "stock" scripts supplied by the BatchLogin auto-configure process. The SHELL.exp and termstart.sh programs look for these variables and behave accordingly. This means that you can still hack and slash away on either of those programs to have any color you want. It's not all that hard, just read the programs, the comments and color call-outs are for the most part self explanatory.
The exception is the call-out for the escape sequences in the SHELL.exp. It was found to be easier to capture a prompt setting and set it via escape sequence (see the stock SHELL.exp for more). To capture and set a prompt in similar fashion, use whatever method you want for setting a prompt, and echo "$PS1" into a file somewhere. Use vi on that and import it (carefully) into your shell -- following similar escaping methods for special characters, and similar results should be available.
An example prompt (with color) is shown below:
#WHITEONBLACK# export PS1="$(tput setaf 4)+-+ $(tput bold)$(tput setaf 2)\$USER$(tput setaf 7)@ $(tput setaf 3)$(uname -n)$(tput setaf 7):$(tput setaf 5)\$PWD$(tput setaf 4)$(t put rmso) +-+ $(tput setaf 7)# "Note, all but the last line of the above would typically go in a users' .profile -- not in either the SHELL.exp -or- termstart.sh. Also note that the last line $(tput setaf 7)# " is the only broken line in the statement. The rest all goes on one line (starting with export PS1=). This is meant to provide an example color prompt only. NODISPLAY=[YES|NO]
It has the added benefit of pretty much preventing annoying guardian Xwindow dialog boxes from being displayed (where would they go?), thus, speeding up greatly the more text-focused operations that are typical for an administrator.