Question about perderabo's MIMETOOL script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Question about perderabo's MIMETOOL script
# 1  
Old 04-06-2005
Question about perderabo's MIMETOOL script

Perderabo,

I copied the mimetool script and am running it on an HP-UX release 11i, and in most cases it works like a charm. But I ran into the following issue;

I extracted data from an Oracle database and formatted the results as a *.csv file so that the user can view it as an excel spreadsheet. It is a relatively large file, ~12000 records. After sending it via mimetool, the file has a control character embedded roughly every 687 records. The character will appear somewhere in the data, not nescessarily at the end of the record. The character looks like the trademark charcter (™)when viewed in excel. If I ftp the file to my pc rather than emailing it, there is no issue.

If you have any ideas on this, I would appreciate it.

Thanks,
Carl.
# 2  
Old 04-06-2005
Mimetool won't work with control characters. Printable ascii only. Try this script and select binary mode to send the file. That might work. Transferring binary files between platforms is dicey though.
# 3  
Old 04-06-2005
Re: Mimetool Script

Perderabo,

Thank you for the reply. Actually, the file is fixed column text seperated by commas. The source file does not have this control character, and if I ftp it to my pc, the file is fine. When I use mimetool, I am winding up with the character inserted into the file somehow. Ive have been using this script for extracts resulting in smaller numbers of records with great results. It is only on this larger file that I have the problem.

Thanks,
carl.
# 4  
Old 04-06-2005
We use mimetool a lot and I've never seen it fail with ascii files. But it reliably breaks with non ascii files. So I don't know what to tell you. Maybe sending it in chunks or something. You might try the other script in binary mode anyway.
# 5  
Old 07-27-2006
Followup

A followup to this issue. The users considered it very minor and it was left unresolved for a year. I had to make a change to the oracle script creating the file to be emailed after some database changes for another application. I had to add the statement "set cursor_sharing=exact" to the sql, and it also resolved the problem of the unwanted characters.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Solved] Question for Perderabo on date calc

Hi, First of all, thanks for all the awesome suggestions on this forum. This helps all the UNIX enthusiast like me. Now, I had a similar requirement as mentioned in a very old post here: Question about Perderabo's "Days Elapsed Between Two Dates" But I am struggling what to change in the... (5 Replies)
Discussion started by: CleoBos
5 Replies

2. What is on Your Mind?

Perderabo: Is that a common handle?

In an web based turn-based-strategy game I play (which until I am sure of the rules of this section of the forum, I'll not post a link to but is tiny and involves wars, warz even ;)), there is a player called Perderabo who has become rather powerful by the looks of things... Could this be one and... (2 Replies)
Discussion started by: Smiling Dragon
2 Replies

3. Post Here to Contact Site Administrators and Moderators

apologies to Perderabo

Sorry Perderabo, really was only asking advice on where best to post, and if I should post. Didn't intend for that missive to be posted. (0 Replies)
Discussion started by: keith.m
0 Replies

4. UNIX for Dummies Questions & Answers

Question to a Perderabo script

Hi I tried this date script https://www.unix.com/showthread.php?p=16559#post16559 but I am probably doing something wrong. If i type: datecalc -a 2006 05 01 + 5 I get following error message: datecalc: Syntax error at line 207 If i look at line 207 i dont get it! But thats not surprising. ... (2 Replies)
Discussion started by: swissman24
2 Replies

5. Shell Programming and Scripting

ksh syntax explanation - from mimetool

Hi I got this part of the script from the mimetool by Perderabo. I have difficulty in decyphering the syntax specially lines 4,5 & 9. Also the test condition in line 3. Could someone help me on this please. -------------------------------------- pwentry=$(grep "^$(logname):" /etc/paswd)... (2 Replies)
Discussion started by: chaandana
2 Replies

6. Shell Programming and Scripting

Follow-up w/ Perderabo re: mimetool

This is a follow-up re: this thread As I mentioned, this script works very nicely, thanks again. However, the ASCII data of the 'attached file' also shows below the body of the email message. Do you know of a way to 'disable' the attached text from showing? Although the file is attached,... (3 Replies)
Discussion started by: jwperry
3 Replies
Login or Register to Ask a Question