The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
Install a Kyocera Mita FS-2000D printer on a AIX system uadm26 AIX 0 01-31-2008 02:47 AM
How to Install and Configure USB Printer in SCO 6 karzon SCO 0 08-08-2007 06:02 AM
Need help on installing an EASY to use and easy to install command line text editor EugeneG UNIX for Dummies Questions & Answers 4 07-16-2007 08:53 AM
Install a network printer on Solaris reda UNIX for Dummies Questions & Answers 2 04-24-2006 09:33 AM
Help !!! How can i install a printer ! bloerg UNIX for Dummies Questions & Answers 2 08-06-2002 07:27 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8  
Old 07-04-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
Try inserting the following lines into a local printer script in /usr/spool/lp/admins/lp/interfaces, removing the equivalent lines from the original script.
Create an entry for office in /etc/hosts, and remove the line
'cp $file /u/PS2' if you don't want to keep a copy of the print file.
Save a copy of the original script.

###start replacement
copies=$4
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
for file in $files
do
cp $file /u/PS2
echo "root\n" >/tmp/$F
echo "put $file LPT1" >>/tmp/$F
echo "quit" >>/tmp/$F
ftp office </tmp/$F
done
rm /tmp/$F
i=`expr $i + 1`
done
###end replacement

Also "LPT1" may change depending on the brand of "JetDirect" box (ethernet to parallel adapter)

Last edited by jgt; 07-04-2007 at 04:42 AM.
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0