Dynamic BBx configuration
By Dirk Hart
Email: [email protected]
Keywords BBx configuration config dynamix custom
This BBx user was setup with a slave printer in a remote location.
Since we have no way of knowing in advance what the tty number will be
when she logs in we build a custom BBx config fle when she logs in.
The first thing we do is populate the custom config file and name it
after the username she uses to login. Then we set up a terminal and
slave printer aliases using the value of the unix tty command.
Then we start up BBx and the folks in Phoenix think I'm a whiz.
grep -v "alias T" /u/basis/pro5/config.bbx >config.$LOGNAME
echo "alias T301 " `tty` " term">>config.$LOGNAME
echo "alias P32 \">cat >`tty`\" \"Phoenix Slave Printer Portrait\"
echo "alias P33 \">cat >`tty`\" \"Phoenix Slave Printer Landscape\"
exec basis/pro5/pro5 -q -m500 -c/usr/$LOGNAME/config.$LOGNAME STARTUP
Got something to add? Send me email.
Increase ad revenue 50-250% with Ezoic
More Articles by Dirk Hart
© 2011-03-19 Dirk Hart