From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: [9fans] Need help on 'page' command From: "rob pike" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020124061141.50CA219A57@mail.cse.psu.edu> Date: Thu, 24 Jan 2002 01:11:38 -0500 Topicbox-Message-UUID: 43685568-eaca-11e9-9e20-41e7f4b1d025 > I tried to display what I suppose is a jpg file as follows: > > gs /n/cdb/JPEGS300/AACROCK1.JPG|page -V > reading through graphics... The stdout of gs is not a picture file - it's diagnostic stuff. (The author was a little new to Unix when he started.) This will confuse page, which will then fall to vestigial code and invoke the old fb stuff, which is deprecated. Around here, where legacy binaries still exist, As secondary proof, %% x %% sed 5q x Aladdin Ghostscript 6.01 (2000-03-17) Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. GS> %% page -V < x reading through graphics... fb/cvt2pic: can't decode stdin IN: Can't read header ... %% So you see, gs is not the easiest way to display a JPG. Either use jpg, page, or read up on gs to see how to make it produce a file, and then run page on that file. It's a little intricate. -rob