David Harel <[EMAIL PROTECTED]> writes: > However if I try the same process using pipes: > smb2ps infile | pstopnm -stdout - | pnmtojpeg > file > > Does not work. > The reason it does not work in pipe is that the [EMAIL PROTECTED]@# pstopnm > command adds it's own garbage to the output file when working using > stdio which is the same message you see on stdout using real files.
I just picked a random ps file (well, I knew it was not multipage) and did cat foo.ps | pstopnm -stdout - | pnmtojpeg > foo.jpeg and then looked at the result with xv - looked OK to me... Then I tried a 2-page ps file and got the first page OK, but ghostscript died in the middle of an acute case of SIGPIPE. I don't know if it is possible to deal with multiple pages. -- Oleg Goldshmidt | [EMAIL PROTECTED] ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
