![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
|||||
|
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.
|
|
||||
|
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. |
|
||||
|
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.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|