[cups.general] Re: Legacy program printing epson FX emulation

Jim Bodkikns (Dakotacom) JimBodkins at yahoo.com
Thu Jan 26 08:17:20 PST 2006


   the '[' is shorthand for the external command 'test' (see man test). [ -n 
"$6" ] basically is a test which returns zero if the string length ("$6") is 
non-zero. The && is an operator that defines an AND list. Command 1 && 
Command 2. Command 2 is executed only if Command 1 returns zero (succeeds). 
exec < "$6" allows exec to take its arg from this string - which it will 
then execute - which of course will only happen if it is of non-zero length.

   I believe that is what that line does.

----- Original Message ----- 
From: "Johannes Meixner" <jsmeix at suse.de>
To: "Mirror of cups.general Newsgroup" <cups at easysw.com>
Sent: Thursday, January 26, 2006 1:59 AM
Subject: Re: [cups.general] Re: Legacy program printing epson FX emulation


>
> Hello,
>
> On Jan 25 12:41 Dave Dubreuil wrote (shortened):
>> Should this work for feeding to the top of the next sheet,
>> or would it feed the paper a form's length from where it stops printing?
>
> It depends on the printer what it does when it gets a formfeed
> character.
> The printers which I know feed to the top of the next sheet.
>
>> What does this line do [ -n "$6" ] && exec <"$6" ?
>
> See the comment "have the input at fd0 (stdin) in any case".
> For details see the "bash" documentation.
>
>> ... a way to input text to a queue and have it processed
>> and printed as pages of text?
>
> A printer model specific "System V style Interface Script"
> could do it.
> You may like to use "fold" to wrap too long lines
> and "pr" to paginate and columnate for printing.
>
>
> Kind Regards
> -- 
> SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: jsmeix at suse.de
> 90409 Nuernberg, Germany                    WWW: http://www.suse.de/
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups 





More information about the cups mailing list