![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Pls Pls do help me
When i run this command, everything is ok. The file can be email and attached but soon after i download the file, the file cant be read. It's seem corrupted. Totally cant be read although i'm using context or wordfile. Original file generated at ek_bkup/alert/tbspace_datafile.log is OK.....
Script sample : tbspace_datafile.sql ------------------------------------------------------------------------ sqlplus / as sysdba @tbspace_datafile.sql > /ek_bkup/alert/tbspace_datafile.log uuencode ek_bkup/alert/tbspace_datafile.log tbspace_datafile.log | mailx -r oraadm@juwpkl.gov.my -s "Oracle Tspace and Datafile Update" adzuan@nc.com.my ------------------------------------------------------------------------ Please somebody help me why this happened???? |
|
||||
|
It is correct for the first to have an absolute path, and not required for the second parameter (which is just the name assigned to the attachment), but it looks to me like it's missing a slash before the absolute path?
|
|
||||
|
Hi guys..i just got updated ...
The uuencode file1 file1 command actually will attach a file in code. Meaning the attachment can be read only in same OS platform. In my case, i need to detach the uuencode file1 file1 from solaris to my notebook in window. I think thats the reason why my attachment is scrumbled when open by wordpad or context. So does anyone know how to attach simple log or txt file to mailx without using uuencode command?? |
|
||||
|
Quote:
If it was a binary file, such as an executable, then the statement would be partly true... you could look at the contents, but you wouldn't be able to run it. Quote:
You can of course just include it as the main body of the email by using as stdin to mailx: Code:
mailx -r oraadm@juwpkl.gov.my -s "Oracle Tspace and Datafile Update" adzuan@nc.com.my < /ek_bkup/alert/tbspace_datafile.log |
![]() |
| Bookmarks |
| Tags |
| mailx, mailx attachment, solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|