Author |
Message
|
bmo |
Posted: Tue Jul 23, 2013 8:52 am Post subject: post destination call dos2unix |
|
|
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 |
|
 |
gbaddeley |
Posted: Tue Jul 23, 2013 4:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
bmo |
Posted: Tue Jul 23, 2013 9:12 pm Post subject: |
|
|
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 |
|
 |
gbaddeley |
Posted: Wed Jul 24, 2013 6:52 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
bmo |
Posted: Thu Aug 01, 2013 1:11 am Post subject: |
|
|
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 |
|
 |
|