but when I cat a file to the fifo that's 1024 random bytes:
cat randomfile.txt > mynamed.fifo;
the dd command exits writing only 1024 (Likely the EOF thing). so I never get my 1MB file. How do I get around this? How do I ensure it generates the random data file without closing dd? Is there something else I need to pass?
Thanks very much all for the replies. Really appreciate it. The place to run this for me would be even in basic shells like the Linux, Solaris, AIX etc 'maintenance' / 'recovery' shells.
So things like Perl or openssl won't work as required libraries won't be loaded in those simple recovery shells.
Corona688:
That's a good option there but unfortunately it didn't work fully or I should say it DID work partially. The loop continued to run even though the dd command ended / stopped.
I haven't tried the conv= or the oflag= . I'll give these a spin and see how they work. Need to first check if they're universally available. Tried seek= and count= as well. That seemed to do the job.