# # Dynamic BBx configuration
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Dynamic BBx configuration

By Dirk Hart
Adanac Software
Email: [email protected]
Web Site:

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© September 2005 Dirk Hart
MailStarUSA.com

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\"
CR,SPCOLS=132
,slon=1b5b3569,sloff=1b5b3469,wait=30,lock=/tmp/P32.lck">>config.$LOGNAME
echo "alias P33 \">cat >`tty`\" \"Phoenix Slave Printer Landscape\"
CR,SPCOLS=13
2,slon=1b5b3569,sloff=1b5b3469,SP=1b451b266c316f363670352e3435431b2873313648,wai
t=30,lock=/tmp/P33.lck">>config.$LOGNAME

cd /u
exec basis/pro5/pro5 -q -m500 -c/usr/$LOGNAME/config.$LOGNAME STARTUP
 

If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> Dynamic BBx configuration

1 comment


Inexpensive and informative Apple related e-books:

Take Control of IOS 11

Take Control of Numbers

iOS 8: A Take Control Crash Course

Take Control of Apple Mail, Third Edition

Take Control of OS X Server





More Articles by © Dirk Hart







Fri Sep 30 16:57:00 2005: 1141   rbailin


You should probably not have any lock files on your printer aliases, because this would prohibit multiple user logins from using their own slave printer at the same time. (Each user's printer is always called P32 or P33 in your setup.) And there's no way a user can access another user's slave printer anyways.

--Bob

------------------------


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





There are only two things wrong with C++: The initial concept and the implementation. (Bertrand Meyer)




Linux posts

Troubleshooting posts


This post tagged:

Administration

DirkHart



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode