Hi Bob, On Thursday 20 June 2002 4:38 pm, Bob Showalter wrote: > > -----Original Message----- > > From: Gary Stainburn [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, June 20, 2002 10:57 AM > > To: [EMAIL PROTECTED] > > Subject: cat binary file > > > > > > Hi all, > > > > I know this is a FAQ, but I can't seem to find it. > > > > What's the best way to cat a binary (file with non-display > > chars) to STDOUT? > > $ cat thefile
The point was that I was doing this at the end of a quite long perl script, and wanted to do it from within that script. The alternative of using system() to call cat would have been inefficient and would may had buffering problems too. As you will see from elsewhere on the thread, I did come up with a suitable answer. > > > The script is a CGI that generates a ps file, uses ps2pdf to > > convert to a PDF > > file and then will squirt (with appropriate HTTP header) the > > PDF to the > > browser. > > I don't see what this has to do with the question above. Are you > asking how to send a PDF file back to the browser? -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
