Steve Dixon wrote:
> 
[]
> What signature does the file command or the Linux print spooler, or
> whatever determines what to do with a file, when the lpr command is
> used?
[]
> [root@dpnacct /junk]# file dfA341*
> dfA341ATCuuLX: ES-channel Fasttracker "oktalyzer" module sound 
file utility just looks to /etc/magic (/usr/share/magic) file. Here is a list of all
known file types with their "signatures", but many of them are not %100 ok. For 
example,
dos .exe files starts with "MZ" letters, but if you start your text file with MZ, 
"file"
will think that this is .exe file:
  $ echo MZ >test
  $ file test
  test: MS-DOS executable (EXE)
  $ _
There are many signatures that just a text strings in first bytes of file...
"oktalyzer" files have string "CH" in 1082 position (according to /usr/share/magic
on my rh6.1).
As I can guess, lp system tryes to determine tile type and do appropriate actions,
but it's guess is wrong here. Sorry I can't check this out (i does not have printer
and lp system installed), but: try to explicitly get content-type of your files.
Try also -l switch for lpr. (Again: only possibility).
Lpr seemed to be "incompatible" with different content types...
[]
> Thanks
> 
> --

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to