- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printer
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
тАО03-28-2000 12:59 AM
тАО03-28-2000 12:59 AM
Printer
I set the default printer using HP JetAdmin on a HP 10.20 as root. And when
run " lp FILENAME " , it works fine.
But when I login as another user's account:
1) if i do a " lpstat -d ", it show the right default printer.
2) if i do a " lp FILENAME", it waits for sometime and then say: " the
destination " " non-existent "
3) if I use the GUI Printer Manager, I can not even see that default printer.
Does anybody know what' need to be setup?
Many thanks in advance!
Sharon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 02:14 AM
тАО03-28-2000 02:14 AM
Re: Printer
variable takes precedence over the systems default
printer queue. Maybe the user's .profile or the systems /etc/profile has it
wrong.
export PRINTER=DefaultPrinterQueueName
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 03:25 AM
тАО03-28-2000 03:25 AM
Re: Printer
and confirmed this by using: echo $PRINTER. The output is right.
But I still get the name thing:
eg: lp FILENAME
lp: destination "" non-existent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 03:44 AM
тАО03-28-2000 03:44 AM
Re: Printer
the printer, config it and have a test print.
The environment variable has correct value, and lp was trying to connect to the
printer but failed.
So the possible cause is the connection or the driver of the printer.
Queyon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 03:52 AM
тАО03-28-2000 03:52 AM
Re: Printer
I don't think it's the connetion problem. Because if I login as ROOT, every
thing is find. This problem happens only when I login as a particular user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 04:26 AM
тАО03-28-2000 04:26 AM
Re: Printer
looks to me more of a perm problem, it your default printer were not defined
you would get a msg like:
no system default destination
is it a network printer with ip in /etc/hosts in such case is /etc/hosts
readable for everyone etc...
Good luck!
Best regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 06:13 AM
тАО03-28-2000 06:13 AM
Re: Printer
precedence over PRINTER. Also make sure that you are using the correct lp
command by trying /usr/bin/lp to see if that works better. This user could
have an alias or a private version of lp on his path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2000 06:50 AM
тАО03-28-2000 06:50 AM
Re: Printer
#######################################################
#!/bin/sh
if [ $# -ne 2 ]; then
echo " Usage: `basename $0` [Input_File] [Output_File]"
echo "Example: `basename $0` /tmp/inputfile.txt /tmp/outputfile.txt"
echo ""
exit 0
fi
INPUT_FILE=$1
if [ ! -f ${INPUT_FILE} ]; then
echo "File ${INPUT_FILE} not found."
echo ""
exit 1
fi
OUTPUT_FILE=$2
if [ -f ${OUTPUT_FILE} ]; then
rm ${OUTPUT_FILE}
fi
echo "Getting long list from ${INPUT_FILE}"
echo " into ${OUTPUT_FILE}"
for GET_FILE in `cat ${INPUT_FILE}`; do
ls -l ${GET_FILE} >> ${OUTPUT_FILE}
done
echo "done."
echo ""
exit 0
#######################################################
Change the mode to be executable by running:
$ chmod 755 longlist
And then run it without parameter first:
$ longlist
Enjoy it!
Queyon