- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting Up Email Printers
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
Forums
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
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
тАО10-08-2002 05:43 AM
тАО10-08-2002 05:43 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2002 06:13 AM
тАО10-08-2002 06:13 AM
Re: Setting Up Email Printers
I think you should be able to create your own model file. Copy an existing one to a different name and go for it.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2002 06:36 AM
тАО10-08-2002 06:36 AM
SolutionTHis is the model file I created (myemail model file):
I set up the LOCAL printer with a special device of /dev/null
#!/usr/bin/sh
# lp interface for emailing
#
#=======================================================================#
# OPTIONS RECOGNIZED: ( none ) #
#=======================================================================#
#########################################################################
PATH="/usr/bin:/usr/lib"
export PATH
# Print the standard header
name=$2
user=`pwget -n $2 | line | cut -d: -f5`
# The remaining arguments are files
shift; shift; shift; shift; shift
files="$*"
# Print the spooled files
for file in $files
do
uuencode $file $file.txt | mailx -m -s "print mail from $name - $user" hbrown@paychex.com
done
exit 0
And the damn thing worked!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2002 10:01 AM
тАО10-08-2002 10:01 AM
Re: Setting Up Email Printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2002 04:17 PM
тАО10-08-2002 04:17 PM
Re: Setting Up Email Printers
You first have to make sure you can email from your server to yourself. Of course replace the hbrown (AT) paychex.com with your email address.
So from the unix prompt on that server try this to see if mail can move from your server to your mail server:
uuencode /etc/hosts hosts.txt | mailx -m -s "host file" JORGESemail@where_ever.com
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 03:48 AM
тАО10-09-2002 03:48 AM
Re: Setting Up Email Printers
Any luck??
live free or die
harry