- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX 11.11 non-HP remote printer stair steppi...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2005 08:02 AM
тАО11-10-2005 08:02 AM
HP-UX 11.11 non-HP remote printer stair stepping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2005 08:18 AM
тАО11-10-2005 08:18 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
awk '{printf("%s\r\n",$0)}' < infile | lp -dyourprinter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2005 08:53 AM
тАО11-10-2005 08:53 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2005 10:06 AM
тАО11-10-2005 10:06 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
cd /var/spool/lp/interface
cp yourprinter yourprinter.safe
vi yourprinter and look for the line"printer=`basename $0`". Just below it add this code.
TDIR=${TMPDIR:-/var/tmp}
T1=${TDIR}/Tp${$}_1.txt
trap 'eval rm -f ${T1}' 0 1 2 15
Now look for the line containing "shift; shift; shift; shift; shift". Just below it add this code:
DIRNAME="/var/spool/lp/request/${printer}"
REQNO=$(echo "${requestid}" | awk -F '-' '{print $NF}')
FNAME=$(ls ${DIRNAME}/d*${REQNO}[A-Za-z]*)
if [[ -f "${FNAME}" ]]
then
awk '{printf("%s\r\n",$0)}' < "${FNAME}" > ${T1}
ASTAT=${?}
if [[ ${ASTAT} -eq 0 ]]
then
mv ${T1} "${FNAME}"
ASTAT=${?}
if [[ ${ASTAT} -ne 0 ]]
then
echo "${printer} mv failed; status ${ASTAT}" >&2
fi
chmod 440 "${FNAME}" # optional
else
echo "${printer} awk failed; status ${ASTAT}" >&2
fi
fi
# The existing rlp command should be here
--------------------------------
If I haven't made any typing booboo's that should fix you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2005 05:09 AM
тАО11-11-2005 05:09 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
Should I be looking for a vendor supplied interface file for the Lanier printers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2005 06:38 AM
тАО11-11-2005 06:38 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2005 06:48 AM
тАО11-11-2005 06:48 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
ie. use lp -dyourprinter your_file
rather than:
cat your_file | lp -dyourprinter.
You should be able to get this going with just a little debugging.
Probably the easiest fix is to see if there is a configuration on this printer to convert LF to CRLF. That is an extremely common printer feature.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2005 06:54 AM
тАО11-11-2005 06:54 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2005 07:36 AM
тАО11-11-2005 07:36 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2005 07:42 AM
тАО11-11-2005 07:42 AM
Re: HP-UX 11.11 non-HP remote printer stair stepping
This is how I assume that the actual pathname to be transferred to the remote host is constructed. If this is wrong then awk will never be invoked.
In any event this will not fix your larger formatting problems. Had you stated what you were trying to do other than simply correcting the CRLF's then we would not have gone down this road.