ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ File Transfer Edition » post destination call dos2unix

Post new topic  Reply to topic
 post destination call dos2unix « View previous topic :: View next topic » 
Author Message
bmo
PostPosted: Tue Jul 23, 2013 8:52 am    Post subject: post destination call dos2unix Reply with quote

Newbie

Joined: 11 Dec 2008
Posts: 6

Sending file "filename.txt" from Windows to Linux.
Can't use the text transfer option because contents may not be converted.
But file must be converted with dos2unix to handle CR/LF.
So at destination agent I defined post call as type program and executable dos2unix and parameter /target/dir/*.
Strange thing now is that there are two files saved in the target dir.
One is called filename.txt and the second is filenamea.txt, but they are exactly the same. None of the files is converted.
What am I missing.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Jul 23, 2013 4:02 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

Quote:
Can't use the text transfer option because contents may not be converted.

Why not, may I ask?
The text transfer option is designed to save the pain of using tools like dos2unix.
_________________
Glenn
Back to top
View user's profile Send private message
bmo
PostPosted: Tue Jul 23, 2013 9:12 pm    Post subject: Reply with quote

Newbie

Joined: 11 Dec 2008
Posts: 6

It is a requirement of the user that the text is not converted.
Being an international company we have to deal with several languages
from all over the world.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Jul 24, 2013 6:52 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

bmo wrote:
It is a requirement of the user that the text is not converted. Being an international company we have to deal with several languages from all over the world.

If you don't convert, how do you know what foreign language characters are being represented by the incoming character codes?

How about using a code page on the destination FTE agent that supports conversion from all used characters in all used source code pages?
_________________
Glenn
Back to top
View user's profile Send private message
bmo
PostPosted: Thu Aug 01, 2013 1:11 am    Post subject: Reply with quote

Newbie

Joined: 11 Dec 2008
Posts: 6

I found the solution. Maybe this helps if you are facing similar problems.
Dont use a wildcard like this: /target/dir/*,
but use /target/dir/${FileName} instead and don't batch trigger files in your monitor. If there are more files transferred at the same time only the last one will be converted.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » post destination call dos2unix
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.