The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SCO
.
google unix.com



SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mac OS X 10.5: Can receive email, but not send email iBot OS X Support RSS 0 10-13-2008 10:20 PM
Print log to an email Pablo_beezo Shell Programming and Scripting 3 06-23-2008 06:49 AM
Print Problem in UNIX. Need to know the option to specify the print paper size ukarthik HP-UX 1 06-07-2007 09:35 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 11:23 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-12-2009
fishbone56 fishbone56 is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Print to Email

Hello I hope someone can help me.

As part of an acquisition I have inherited a ERP system running on a SCO 5 server, unfortunately I don't have much Unix knowledge. I have been asked to configure a script so that when users print a report from the ERP software it runs a script that sends the report to the users mailbox as an email attachment. I have no idea how to do this.

I know mail is set up on the server and I know how to configure the ERP so it prints to a script but I don't know what should go in that script.

Our mail system is MS Exchange if that makes a difference.

Could any give me a idiots guide on how to do this?

Cheers
Craig
  #2 (permalink)  
Old 05-12-2009
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Wink Here is a piece of one of my scripts

Some of the variables are defined earlier in the script. However, this might provide some basics of emailing a file attachment to people.

Code:
echo "#### Emailing the reports"
# create summary for email
echo "Summary Report of items un-processed ${DataSet} data ">$msgtxt
echo "Script name = ${SCRIPT} " >>$msgtxt

# over-ride default set by unix
m_frv='set from=abc@xyz.com; set realname="Client Automation"'
m_subj="Items Analysis"
# recipient
m_recipients="jg@xyz.com"
# people to get cc copies
m_recipients_cc="group@xyz.com"
 
# determine the size of the file attachment; if greater than 65k lines do not send
#  Excel does not like these long files; email may not like to send large files
csv_cnt=$(wc -l ${workx4} | awk '{print $1}')
if [ $csv_cnt -lt 65000 ]
   then
     /usr/local/bin/mutt -nx -e "$m_frv" -s "$m_subj" -a "$workx4" -c "$m_recipients_cc" "$m_recipients" <$msgtxt
   else 
     /usr/local/bin/mutt -nx -e "$m_frv" -s "$m_subj" -c "$m_recipients_cc" "$m_recipients" <$msgtxt
fi
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0