pt-mext and CRLF files problems

Bug #828621 reported by Frederic Descamps
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Confirmed
Undecided
Unassigned

Bug Description

like aspersa mext, using a input file via cat won't work if this file was generated on Windows.

Version: trunk

$ pt-mext -r -- cat lefred.txt
awk: cmd. line:1: fatal: cannot open file `/tmp/mext_temp_file-1' for reading (No such file or directory)

$ file lefred.txt
lefred.txt: ASCII text, with CRLF line terminators

$ dos2unix lefred.txt
dos2unix: converting file lefred.txt to Unix format ...

$ pt-mext -r -- cat lefred.txt
Aborted_clients 49 0 0 0 0
Aborted_connects 6 0 0 0 0
[...]

Maybe it could be added to the docs of add a check ?

tags: added: pt-mext windows
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: New → Confirmed
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-872

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.