LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2003, 12:19 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
why did cat /dev/urandom send my printer insane ?


for testing purposes i needed a large file,
so i thought i could use
cat /dev/urandom > bigFile
to generate a big random file.

out of curiocity i typed cat /dev/urandom to see what came out...

as expected the screen filled with random characters, then after a few seconds...
what should have been standard console output caused my printer to wake up, and print half a page of random characters...

why ?

and if this standard output can "get lost" and end up in the printer..
(my sound output made a slight noise too)
should i be worried that it could have found its way also to my ppp0 and damaged my downloads ???
im using redhat 9.
 
Old 12-01-2003, 03:41 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
I don't know the answer, this is just an idea.

When you do a cat from /dev/urandom you are getting a reasonably random stream of 0s and 1s. On your screen these are translated into ASCII characters which should be random.

It may be the case than somewhere in the stream of characters you hit a sequence of binary numbers which translated into a carriage return, followed by "lp" or something similar, which the OS then interpreted as if someone had told the computer to start printing from STDIN.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
reading from /dev/urandom in c djgerbavore Programming 5 10-04-2005 12:54 PM
What is adsp0? and why cat /dev/urandom >/dev/adsp0 give me "no such device"? haimeltjnfg Linux - Hardware 2 05-09-2004 10:54 PM
Problem when using /dev/urandom maga_lm Programming 2 03-22-2004 11:25 PM
/dev/urandom Moszer Slackware 3 09-09-2003 09:06 PM


All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration