Attempting to "cat /dev/urandom" and deleting characters using "tr" randomly results in "write error Broken pipe"
Issue
/dev/urandomis parsed by a script for internal application needs, and returns the below error at times:
[root@server]~$ cat /dev/urandom | head -c 50 | tr -dc 'a-zA-Z0-9~!'
1AS!3miYjUQaSRuZwJVcat: write error: Broken pipe
Environment
- Red Hat Enterprise Linux 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
