![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capture output to file and printer | rdasari | UNIX for Advanced & Expert Users | 1 | 01-16-2008 03:57 PM |
| Shadow file definition | narik007 | SUN Solaris | 1 | 03-13-2006 11:15 AM |
| File system definition | fahmoun | Filesystems, Disks and Memory | 1 | 05-10-2005 08:26 AM |
| AIX definition of maxuprc | rakstr | AIX | 0 | 08-10-2004 01:41 PM |
| Definition of a regular file | 435 Gavea | UNIX for Dummies Questions & Answers | 3 | 12-08-2003 11:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
I have no way to test this...and I'm about to leave for vacation so I won't be around to help debug it...but here goes... Code:
#! /usr/bin/ksh HOST=printserver REALPRINT=lp PRINT=lp /usr/lib/lpshut /usr/lib/lpadmin -x$PRINT /usr/lib/lpadmin -p$PRINT -mrmodel -v/dev/null -ocmrcmodel \ -osmrsmodel -orm$HOST -orp$REALPRINT -ob3 # If this is to be the default printer: /usr/lib/lpadmin -d$PRINT /usr/lib/lpsched enable $PRINT /usr/lib/accept $PRINT exit 0 And don't put any spaces in by changing, say, "-p$PRINT" to "-p $PRINT" because it confuses lpadmin. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|