I am trying to run pstopnm on pipe.
The command: smb2ps infile > a ; pstopnm a; pnmtojpeg a000.ppm > b displays some output to stdout and converts correctly.
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.
some background.
Linux machine is a RH 7.3
The input file "infile" is a result of w2000 client sending a print file with some garbage wrapping it. The smb2ps is a simple filter to remove the junk as recommended by one of the samba documents (I do not remember which but if anyone cares I will look for it).
The whole idea is to convert a printout from a Windows client to jpeg and send it via e-mail instead of fax.
Well.... What are your comments?
-- Thanks.
David Harel,
==================================
Home office +972 4 6921986
Fax: +972 4 6921986
Cellular: +972 54 534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email: [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]
