Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Multiple Default Printers 1

Status
Not open for further replies.

Pilot1

IS-IT--Management
Feb 22, 2001
118
US
We have four locations. I recently upgraded from using Digi ports and serial interfaces. We have SCO 5.0.4. We use Facetterm also. We went to a total IP network. (Frame Relay and Cisco 1720's) Everything works perfectly, except I need to set up a default Facetterm print screen in each office. The way it was set up before was that lpdest was set up at the host site as lp2, and a script file was used to redirect print jobs according to DIGI port assignments. E.g. serial assignments ttye01-ttye16 lpdest lp59, ttyi01-ttyi16 lpdest lp31 and on and on. That worked great. Now of course we are using Pseudo Terminal Numbers. Is there a way to Group Printers and create default printers in all four locations? Or is there a way to assign Pseudo Terminals to certain subnets??

Thanks! Keith
 
I would suggest modifying the script that did the assignements to use the users login name to perform the default assignments.
 
Instead of tty ports you would now use hostnames.
login names would be ok if the user could never log in from a different site or machine.

here is a snippet that i use in most profiles, it allows for both network logins and serial or console sessions:

unix_release=`uname -X|grep Release|cut -c11-15`
if [ $unix_release = "3.2v5" ] ;then
host_name=`who -mx|cut -c38-80|cut -f 1 -d\.`
if [ "$host_name" = "" ] # serial or console login
then
host_name=`uname -n`
fi
else
host_name=`uname -n`
fi
server_host_name=`uname -n`

I can then test if server_host_name = host_name.

hth
stan
 
Thanks for help and suggestions! I modified the facetterm script files to assign printers according to `logname` This works great for us as most employee's default screen print from their own terminals. We now have the ability to print to several department printers as default printers!

Once again thanks for your help!
Pilot1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top