Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Building Our Own Namespaces with “Create Context” Oracle
  • create user with unlimited quota Oracle
  • Good links for x$ tables in oracle. Oracle
  • Generate SSH without password authentication. Linux/Unix
  • USE_NL and INDEX hints example Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • sess_server.sql Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Rman Notes -1 Oracle
  • Insert cause enqueue locks Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Good notes on Oracle Events Oracle

Sending email with file attachment.

Posted on 07-Jan-2010 By Admin No Comments on Sending email with file attachment.

Single File Attachemnt:

=======================

cat test.dat|uuencode test.dat|mailx -s “subject” mailid

Multiple file Attachment:

=========================

(uuencode INPUTFILE $FILE_STRING.out ;uuencode INPUTFILE $FILE_STRING.err )|mailx -s “SUBJECT” $EMAIL_ID

(uuencode INPUTFILE check_dr_notok.log ;uuencode INPUTFILE check_dr_ok.log )|mailx -s “Test multuple attachment” pmehta@1800flowers.com

(uuencode check_dr_notok.log check_dr_notok.log ;uuencode check_dr_ok.log check_dr_notok.log)|mailx -s “Test multuple attachment” pmehta@1800flowers.com

Linux/Unix, shell

Post navigation

Previous Post: Kernel Parameters for Solaris
Next Post: How to find password change date for user

Related Posts

  • move_arch_files.ksh Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Korn Shell Arithmatic Linux/Unix
  • cif crons Linux/Unix
  • adding new line after specific pattern using sed Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Error Handling in Proc Oracle
  • Some useful Unix Commands Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Jai Shree Ram Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme