Re: printout sending control codes to the console?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Konstantin Svist wrote:
> I have a script which prints out some data to the terminal, which I keep
> in a screen session.
> Often times I see indecipherable characters printed out and the output
> freezes - I'm guessing some control code is being triggered from the
> printout.
> Is there a way to prevent this?

Pipe it through cat -vet?

(Strictly, only cat -v is needed. -e adds a $ at the end of each line
and -t prints tabs as ^I. And if you have -e, you don’t need -v for Gnu
cat. This isn’t true with other cats, and “cat -vet” is easy to
remember!)

James

-- 
E-mail:     james@ |     “Why is it we never meet anyone nice?”
aprilcottage.co.uk |     “Why is it we never meet anyone who can shoot
                   | straight?”
                   |     -- Lister and Cat, ‘Red Dwarf’

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux