The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script question fusionjd Shell Programming and Scripting 1 02-05-2006 06:38 PM
ksh syntax explanation - from mimetool chaandana Shell Programming and Scripting 2 07-27-2005 02:28 AM
script question shad0w75 UNIX for Dummies Questions & Answers 2 06-19-2003 05:53 PM
Follow-up w/ Perderabo re: mimetool jwperry Shell Programming and Scripting 3 04-15-2002 04:50 PM
Script Question merlin UNIX for Dummies Questions & Answers 2 11-20-2001 10:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-06-2005
perssonc perssonc is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 3
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 (permalink)  
Old 04-06-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
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 (permalink)  
Old 04-06-2005
perssonc perssonc is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 3
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 (permalink)  
Old 04-06-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
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 (permalink)  
Old 07-27-2006
perssonc perssonc is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 3
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.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:14 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